Git Product home page Git Product logo

Comments (3)

KevinMarquette avatar KevinMarquette commented on June 3, 2024

I took a look at the graphviz documentation on this one. https://graphviz.gitlab.io/_pages/doc/info/attrs.html#k:escString

A string allowing escape sequences which are replaced according to the context. For node attributes, the substring "\N" is replaced by the name of the node, and the substring "\G" by the name of the graph. For graph or cluster attributes, the substring "\G" is replaced by the name of the graph or cluster. For edge attributes, the substring "\E" is replaced by the name of the edge, the substring "\G" is replaced by the name of the graph or cluster, and the substrings "\T" and "\H" by the names of the tail and head nodes, respectively. The name of an edge is the string formed from the name of the tail node, the appropriate edge operator ("--" or "->") and the name of the head node. In all cases, the substring "\L" is replaced by the object's label attribute.
In addition, if the associated attribute is label, headlabel or taillabel, the escape sequences "\n", "\l" and "\r" divide the label into lines, centered, left-justified, and right-justified, respectively.

Obviously, one can use "\\" to get a single backslash. A backslash appearing before any character not listed above is ignored.

from psgraph.

KevinMarquette avatar KevinMarquette commented on June 3, 2024

Because I am trying to keep as much of the graphviz functionality as possible available in GraphViz, I want to preserve the ability to use those special escape sequences in labels.

from psgraph.

dstaulcu avatar dstaulcu commented on June 3, 2024

Thank you for looking into this. I'll incorporate your research into my venture.

The structured data example in your blog article demonstrating use of PSGraph has the same issue which brought me here. The label field for C:\Workspace\PSGraph node is missing backslashes associated with the FullName of the folder. I did obvious things like replacing "\" with "\\" in a copy of the FullName for labeling but it did not help.

from psgraph.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.