|
From: | Stefan Reitz |
Subject: | [igraph] how to create instance of igraph.Edge in Python and get to the value of 'label'-attribute of an edge |
Date: | Fri, 12 Dec 2008 16:05:13 +0100 |
Hello, I keep getting errors when trying to create an
instance of igraph.Edge import igraph ig = igraph.Graph() MenueGraph =
ig.Read("C:\\Dokumente und Einstellungen\\reitz\\Eigene Dateien\\S1nn
Projekte\\UHV\\sprach
test\\UHV_Tree_Test\\UHV_Tree_Test\\src\\MenueStrukturUHV_nur_CallStacks.gml",
"gml") [everything
fine until I get to the nexst line:] ie = igraph.Edge() à TypeError:
cannot create 'igraph.Edge' instances I am trying to get to the attributes of single edges.
I am writing test software to automatically test a
menu structure. For this to work, the edges must provide the information about
the conditions for taking a particular path. So far igraph is nicely providing
the shortest paths from beginning to end condition, but I just can’t get
to the .gml file’s ‘label’-attribute of any given edge. (I
take it that this ‘label’-attribute would be the same one edgeattribs =
MenueGraph.edge_attributes() print edgeattribs à ['label',
'LabelGraphics', 'edgeAnchor', 'graphics'] mentions.) Please suggest a way to get to the value of the ‘label’-attribute. Mit
freundlichen Grüßen / Kind regards Stefan
Reitz Test Engineer Tel:
+49 / 711 / 901 219-97 Fax: +49
/ 711 / 901 219-29 E-Mail address@hidden S1nn GmbH & Co. KG Entennest 1, D-73730 Esslingen Geschäftsführer:
Philipp Popov, Sitz der Gesellschaft: Esslingen am Neckar Registergericht:
Stuttgart, HRA 212366 Ust.-Id.-Nr./VAT-No.: DE238986211 Diese
Mitteilung ist ausschließlich für den beabsichtigten Empfänger bestimmt. Sie
kann vertrauliche Informationen enthalten, die dem Schutz des Gesetzes
unterfallen. Jede(r) unberechtigte Lektüre, Gebrauch, Veröffentlichung oder
Weitergabe ist untersagt. Sollten Sie nicht der beabsichtigte Empfänger sein,
vernichten Sie bitte diese Mitteilung einschließlich aller Anlagen und
angefertigten Kopien. This message is for the
sole use of the intended recipient(s) and may contain confidential information
which are legally privileged. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please destroy
this message including all enclosures and copies thereof. |
[Prev in Thread] | Current Thread | [Next in Thread] |