Read graph in GraphML format from path.
Parameters : | path : file or string
node_type: Python type (default: str) :
|
---|---|
Returns : | graph: NetworkX graph :
|
Notes
This implementation does not support mixed graphs (directed and unidirected edges together), hypergraphs, nested graphs, or ports.
For multigraphs the GraphML edge “id” will be used as the edge key. If not specified then they “key” attribute will be used. If there is no “key” attribute a default NetworkX multigraph edge key will be provided.
Files with the yEd “yfiles” extension will can be read but the graphics information is discarded.
yEd compressed files (“file.graphmlz” extension) can be read by renaming the file to “file.graphml.gz”.