Hello,
I am using read_dot from pydot (v. 1.4.2-2) and networkx (v. 2.8.8-1ubuntu1), in Python3 (v. 3.12.3).
Sometimes read_dot add an extra vertex with label "\n". I noticed that this has some relation with the presence of a ";" at the end of the last line. For instance, consider the simple code below, in a file named t.
import sys import networkx as nxAlso, consider an input file, name test1.dot.
graph {The output of the command `$ t < test1.dot' gives the output below.
Graph named 'G' with 3 nodes and 1 edgesNote that there is an extra vertex.
If we remove the ";" from the input file, the output is correct.
Graph named 'G' with 2 nodes and 1 edgesHave someone noticed that error before? Is that a real bug or I am using it in the wrong way?
Thanks,
André Guedes
PS. I posted that on stackoverflow:
https://stackoverflow.com/questions/79010300/networkx-read-dot-error-add-an-extra-vertex
--
You received this message because you are subscribed to the Google Groups "networkx-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to networkx-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/networkx-discuss/fc1116e2-9559-4e4f-a612-04066f122ed2n%40googlegroups.com.