Coder Social home page Coder Social logo

graphviz's People

Contributors

alexandresalome avatar aurelc2g avatar clemens-tolboom avatar odolbeau avatar oskarstark avatar petsagouris avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

graphviz's Issues

Infinite loop caused by nested sub-graphs

Creating a graph with nesting of more than two levels causes an infinite loop.

screen shot 2017-04-29 at 2 09 27 pm

Steps to reproduce

Create nested graph structure like so.

$graph = new Digraph('G');
$graph->node('A')->edge(['A', 'B']);

$sub1 = $graph
    ->subgraph('cluster_1')
    ->node('B')
    ->edge(['B', 'C']);

$sub2 = $sub1->subgraph('cluster_2')
    ->node('C')
    ->edge(['C', 'D']);

$sub3 = $sub2->subgraph('cluster_3')
    ->node('D');

The final call to Subgraph::createEdge() will create an infinite loop as it is unable to resolve the top level graph.

Escaping reserved keywords is not case-sensitive

When creating a node which uses a reserved keyword for its name (eg. graph, node, edge)

The name should be escaped with quotation marks, the current implementation works if your node names are all lower case, however the test does not consider names like Node etc..

GraphViz with html

How to do that with your lib

        $graph
                ->set('rankdir', 'LR')
                ->subgraph('cluster_0')
                ->set('style', 'filled')
                ->set('color', 'lightgrey')
                ->attr('node', array('style' => 'filled', 'color' => 'white'))
                ->edge(array('a0', 'a1', 'a2', 'a3'))
                ->set('label', 'process #1')
                ->end()
                ->subgraph('cluster_1')
                ->attr('node', array('style' => 'filled'))
                ->edge(array('b0', 'b1', 'b2', 'b3'))
                ->set('color', 'blue')
                ->end()
                ->edge(array('start', 'a0'))
                ->edge(array('start', 'b0'))
                ->edge(array('a1', 'b3'))
                ->edge(array('b2', 'a3'))
                ->edge(array('a3', 'a0'))
                ->edge(array('a3', 'end'))
                ->edge(array('b3', 'end'))
                ->node('AAA', array('label'=> "<<table><tr><td>xfghxhfg</td></tr></table>>"))
        ;
        $dot = $graph->render();

It display html instead take in consideration so it add a " between = and <.

Carriage returns in labels

Heya ๐Ÿ‘‹

I'm trying to bring up to speed an old project and it has a dependency on an old fork of this repository.

It's been a while since it's been forked and I was wondering if carriege returns are supported in labels. If not, are there plans to add support for them?

Here's the full diff the fork of the library has:

main...Trismegiste:graphviz:master

Add parsing function for dot files

Nice work!

But I have a requirement to read the generated .dot, modify the nodes/edges of the .dot file, and then generate a new .dot

It seems like a new parsing function needs to be added.

Looking forward to your reply.

Best wishes,
Porlockzzz

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.