Upcoming SlideShare
×

# Networkx tutorial

1,545 views

Published on

Published in: Education, Technology
3 Likes
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
• Be the first to comment

Views
Total views
1,545
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
32
0
Likes
3
Embeds 0
No embeds

No notes for slide

### Networkx tutorial

1. 1. NetworkX Tutorial Release 1.6 Aric Hagberg, Dan Schult, Pieter Swart November 22, 2011Contents1 Creating a graph i2 Nodes ii3 Edges ii4 What to use as nodes and edges iii5 Accessing edges iv6 Adding attributes to graphs, nodes, and edges iv 6.1 Graph attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iv 6.2 Node attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v 6.3 Edge Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v7 Directed graphs v8 Multigraphs vi9 Graph generators and graph operations vi10 Analyzing graphs vii11 Drawing graphs viiStart here to begin working with NetworkX.1 Creating a graphCreate an empty graph with no nodes and no edges.>>> import networkx as nx>>> G=nx.Graph()