Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dirk.wintergruen
network_extensions
Commits
3895070a
Commit
3895070a
authored
Nov 02, 2021
by
dirk.wintergruen
Browse files
add layer name (_layer) to each edge
parent
6a1d401f
Changes
1
Hide whitespace changes
Inline
Side-by-side
network_extensions/igraphx/multilayer.py
View file @
3895070a
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment