File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -658,17 +658,20 @@ def generate_network(self, mode1, mode2, colours=None, edge_helper=net_edges_sim
658658
659659
>> The tag names of attributes to be saved for each edge.
660660
661+
**NOTE**: Need to refine the below section, since there seems to be some confusing statements.
662+
*Adding atomic attributes to the graph will also add them to any graphml file generated*.
663+
661664
> *mode1_atom_attrs* : `list`
662665
663666
>> The tag names of attributes to be saved once for each node of mode1.
664667
665668
> *mode2_atom_attrs* : `list`
666669
667-
>> The tag names of attributes to be saved repeatedly for each node of mode1.
670+
>> The tag names of attributes to be saved once for each node of mode2.
668671
669672
> *mode1_vector_attrs* : `list`
670673
671-
>> The tag names of attributes to be saved once for each node of mode2.
674+
>> The tag names of attributes to be saved repeatedly for each node of mode1.
672675
673676
> *mode2_vector_attrs* : `list`
674677
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,8 @@ def write_graphml(self, fname):
405405

406406
if warning:
407407
warnings.warn("The provided graph contained the vector attributes: {}. All values of vector attributes have"
408-
" been converted to semicolon-delimited strings. To prevent this, remove vector attributes or"
409-
" convert them to atomic attributes prior to calling .write_graphml"
408+
"\nbeen converted to semicolon-delimited strings. To prevent this, remove vector attributes or"
409+
"\nconvert them to atomic attributes prior to calling .write_graphml"
410410
.format(warning_set))
411411
nx.write_graphml(graph, fname)
412412
print("Success. Wrote GraphML file {} to {}".format(fname, os.getcwd()))

0 commit comments

Comments
 (0)