I am using python and pydotplus to read a dot file, but there is an error when I am loading it:
Expected "}", found '[' (at char 226), (line:7, col:10)
I checked it and found it was caused by '\"' in an attribute of the node. The dot file is as follows:
digraph "checkChessboardBinary"
{
// LATEX_PDF_SIZE
edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"];
node [fontname="Helvetica",fontsize="10",shape=record];
rankdir="LR";
Node62 [label="cvmorphologyDefaultBorderValue",height=0.2,width=0.4,color="red", fillcolor="white", style="filled",URL="$group__imgproc__filter.html#ga94756fad83d9d24d29c9bf478558c40a",tooltip="returns \"magic\" border value for erosion and dilation. It is automatically transformed to Scalar::all..."];
}
The dot file is generated by doxygen, and \"
in tooltip="returns \"magic\" borde
caused the error.
I hope you can help me read the file with pydotplus and do not modify it.