flatten_references_graph: fix typo egdes => edges
This commit is contained in:
parent
f621753b76
commit
88bdfb1565
@ -114,7 +114,7 @@ def subcomponent_multi(graph, vertices, mode="out"):
|
|||||||
|
|
||||||
|
|
||||||
@curry
|
@curry
|
||||||
def egdes_for_reference_graph_node(path_to_size_dict, reference_graph_node):
|
def edges_for_reference_graph_node(path_to_size_dict, reference_graph_node):
|
||||||
source = reference_graph_node["path"]
|
source = reference_graph_node["path"]
|
||||||
return map(
|
return map(
|
||||||
lambda x: {"source": source, "target": x},
|
lambda x: {"source": source, "target": x},
|
||||||
@ -170,7 +170,7 @@ def references_graph_to_igraph(references_graph):
|
|||||||
return igraph.Graph.DictList(
|
return igraph.Graph.DictList(
|
||||||
map(vertex_from_reference_graph_node, references_graph),
|
map(vertex_from_reference_graph_node, references_graph),
|
||||||
unnest_iterable(map(
|
unnest_iterable(map(
|
||||||
egdes_for_reference_graph_node(path_to_size_dict),
|
edges_for_reference_graph_node(path_to_size_dict),
|
||||||
references_graph
|
references_graph
|
||||||
)),
|
)),
|
||||||
directed=True
|
directed=True
|
||||||
|
Loading…
Reference in New Issue
Block a user