Hi!
#!/usr/bin/env python
import igraph as ig
import numpy as np
random = ig.Graph.Erdos_Renyi(100, 0.2)
random.vs["owner"] = "random"
bara = ig.Graph.Barabasi(100, 2)
bara.vs["owner"] = "bara"
graphs = [random, bara]
graph_union = ig.Graph().disjoint_union( graphs )
print graph_union.vs["owner"]
Traceback (most recent call last):
File "model.py", line 17, in <module>
print graph_union.vs["owner"]
KeyError: 'Attribute does not exist'
Why graph_union does not have "owner" attribute?
Thanks.