|
211 | 211 | _export_graph_to_networkx, |
212 | 212 | _construct_graph_from_graph_tool, |
213 | 213 | _export_graph_to_graph_tool, |
| 214 | + _export_graph_to_torch_geometric, |
214 | 215 | ) |
215 | 216 | from igraph.io.random import ( |
216 | 217 | _construct_random_geometric_graph, |
@@ -463,6 +464,8 @@ def __init__(self, *args, **kwds): |
463 | 464 | from_graph_tool = classmethod(_construct_graph_from_graph_tool) |
464 | 465 | to_graph_tool = _export_graph_to_graph_tool |
465 | 466 |
|
| 467 | + to_torch_geometric = _export_graph_to_torch_geometric |
| 468 | + |
466 | 469 | # Files |
467 | 470 | Read_DIMACS = classmethod(_construct_graph_from_dimacs_file) |
468 | 471 | write_dimacs = _write_graph_to_dimacs_file |
@@ -708,7 +711,9 @@ def es(self): |
708 | 711 |
|
709 | 712 | ########################### |
710 | 713 | # Paths/traversals |
711 | | - def get_all_simple_paths(self, v, to=None, minlen=0, maxlen=-1, mode="out", max_results=None): |
| 714 | + def get_all_simple_paths( |
| 715 | + self, v, to=None, minlen=0, maxlen=-1, mode="out", max_results=None |
| 716 | + ): |
712 | 717 | """Calculates all the simple paths from a given node to some other nodes |
713 | 718 | (or all of them) in a graph. |
714 | 719 |
|
@@ -973,15 +978,14 @@ def Incidence(cls, *args, **kwds): |
973 | 978 | def are_connected(self, *args, **kwds): |
974 | 979 | """Deprecated alias to L{Graph.are_adjacent()}.""" |
975 | 980 | deprecated( |
976 | | - "Graph.are_connected() is deprecated; use Graph.are_adjacent() " "instead" |
| 981 | + "Graph.are_connected() is deprecated; use Graph.are_adjacent() instead" |
977 | 982 | ) |
978 | 983 | return self.are_adjacent(*args, **kwds) |
979 | 984 |
|
980 | 985 | def get_incidence(self, *args, **kwds): |
981 | 986 | """Deprecated alias to L{Graph.get_biadjacency()}.""" |
982 | 987 | deprecated( |
983 | | - "Graph.get_incidence() is deprecated; use Graph.get_biadjacency() " |
984 | | - "instead" |
| 988 | + "Graph.get_incidence() is deprecated; use Graph.get_biadjacency() instead" |
985 | 989 | ) |
986 | 990 | return self.get_biadjacency(*args, **kwds) |
987 | 991 |
|
|
0 commit comments