python 2.7 - Multiple label values support in graphlab.label_propagation.create -


below code tries add 2 vertices both vertices having multiple label values. tries apply label_propagation on label "labelx" graph created.

from graphlab import label_propagation 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 typeerror: typeerro...typed.',)

in documentation of labelpropagation, not find multi label support information anywhere. hints on how resolve problem welcome. if graphlab.label_propagation not support multilabels on vertices, directions on other packages offers functionality helpful.

thanks!


Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -