Below code tries to add 2 vertices with both vertices having multiple label values. Then tries to apply label_propagation on label "labelx" to the graph created.
from graphlab import label_propagation
from graphlab import SFrame, SGraph, Vertex, Edge
g = SGraph()
verts = [Vertex('H',attr={'labelx': [1,0]})]
g= g.add_vertices(verts)
verts = [Vertex('I',attr={'labelx': [0,2]})]
g= g.add_vertices(verts)
g = g.add_edges(Edge('H','I'))
print g.summary
m = label_propagation.create(g, label_field='labelx')
But, throws error as TypeError: TypeErro...typed.',)
In the documentation of Labelpropagation, i could not find multi label support information anywhere. Any hints on how to resolve the problem are welcome. If graphlab.label_propagation does not support multilabels on vertices, any directions on other packages which offers this functionality will be very helpful.
Thanks!