Commit 3895070a authored by dirk.wintergruen's avatar dirk.wintergruen
Browse files

add layer name (_layer) to each edge

parent 6a1d401f
......@@ -545,6 +545,7 @@ class MultiLayerGraph(OrderedDict):
logging.debug("already in: %s" % k)
continue
if len(gr.vs) > 0:
gr.es["_layer"] = k
multi_layer = igraphx.union(multi_layer, gr, v_attr_name=v_attr_name, typ_field=None)
##TODO unterscheide label in different layers
multi_layer._components.add(k)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment