You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I pass the string n1 = "http://brick.oclc.com.au:81/" to node g.node(n1) then it appears in the .gv file as "http://brick.oclc.com.au:81/". When I pass the same string to edge g.edge(n1,n2) it appears in the .gv file as http:"//brick.oclc.com.au":81/ which causes an error; syntax error in line 3001 near '/'
The quotation marks get messed up. Why do the two functions handle the same string differently?
The text was updated successfully, but these errors were encountered:
The edge method currently accepts :-separated strings as node_ids (DOT language), currently splitting them naively into node, port, and compass (underdocumented unfortunately). AFAIU the DOT language principally allows port and compass also in node statements but they seem to be ignored, which is why the node method is different here.
The best current workaround is probably to use node names and labels where the wanted labels could contain colons:
In [1]: importgraphviz
...:
...: g=graphviz.Graph()
...: g.node('A', 'http://brick.oclc.com.au:81/')
...: g.node('B', 'spam')
...: g.edge('A', 'B')
...: g
If I pass the string n1 = "http://brick.oclc.com.au:81/" to node
g.node(n1)
then it appears in the .gv file as "http://brick.oclc.com.au:81/". When I pass the same string to edgeg.edge(n1,n2)
it appears in the .gv file as http:"//brick.oclc.com.au":81/ which causes an error;syntax error in line 3001 near '/'
The quotation marks get messed up. Why do the two functions handle the same string differently?
The text was updated successfully, but these errors were encountered: