MCPcopy Create free account
hub / github.com/easy-graph/Easy-Graph / to_directed_class

Method to_directed_class

easygraph/classes/graph.py:1431–1437  ·  view source on GitHub ↗

Returns the class to use for empty directed copies. If you subclass the base classes, use this to designate what directed class to use for `to_directed()` copies.

(self)

Source from the content-addressed store, hash-verified

1429 return G, index_of_node, node_of_index
1430
1431 def to_directed_class(self):
1432 """Returns the class to use for empty directed copies.
1433
1434 If you subclass the base classes, use this to designate
1435 what directed class to use for `to_directed()` copies.
1436 """
1437 return eg.DiGraph
1438
1439 def to_directed(self):
1440 """Returns a directed representation of the graph.

Callers 1

to_directedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected