-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lecture "Organising information: graphs", exercise 1 #36
Comments
|
|
|
|
from networkx import MultiGraph my_graph = Graph() my_graph.add_node("Tim Berners-Lee") my_graph.add_edge("Tim Berners-Lee", "Tom Heath", weight=18) |
|
tnx to @AleRosae for the visualizing method! |
I spent some time perfecting my list scraping just to find out that we were supposed to only add the first 5 co-authors... I'll paste all the code I used to clean the list and create the whole graph anyway 🤦🏻♂️
|
|
|
using matplotlib to create a visualization (saved as a file in this case).
|
|
Is it possible to print both nodes and edges attributes in the same result?
|
|
Consider the list of co-authors of Tim Berners-Lee as illustrated in the right box at http://dblp.uni-trier.de/pers/hd/b/Berners=Lee:Tim. Build an undirected graph that contains Tim Berners Lee as the central node, and that links to five nodes representing his top-five co-authors. Also, specify the weight of each edge as an attribute, where the value of the weight is the number of bibliographic resources (articles, proceedings, etc.) Tim Berners-Lee has co-authored with the person linked by that edge.
The text was updated successfully, but these errors were encountered: