Removed unnecessary line from from_networkx.
This commit is contained in:
parent
ab9c1ec84b
commit
56a572c4ee
|
@ -392,7 +392,6 @@ class GraphDataset(Dataset):
|
||||||
|
|
||||||
if isinstance(G, nx.DiGraph):
|
if isinstance(G, nx.DiGraph):
|
||||||
G = nx.XDiGraph(G)
|
G = nx.XDiGraph(G)
|
||||||
G = G.to_directed()
|
|
||||||
elif isinstance(G, nx.Graph):
|
elif isinstance(G, nx.Graph):
|
||||||
G = nx.XGraph(G)
|
G = nx.XGraph(G)
|
||||||
|
|
||||||
|
|
Reference in New Issue