mariusz-schimke / gigraph Goto Github PK
View Code? Open in Web Editor NEWSimple yet versatile library for generating graphs in the DOT language
License: MIT License
Simple yet versatile library for generating graphs in the DOT language
License: MIT License
HI,
Is it possible to achieve something like this in a single line of code?
{rank=same; b1 -> b2 -> b3};
currently the only way I found to achieve the same result is like this:
graph.Subgraphs.AddWithNodes(DotRank.Same, b1.Tag, b2.Tag, b3.Tag);
graph.Edges.Add(b1.Tag, b2.Tag);
graph.Edges.Add(b2.Tag, b3.Tag);
that genrates this:
{ rank = same b1 b2 b3 }
b1 -> b2
b2 -> b3
Thanks!
to make it easier for people to build
Heya, very cool library.
Currently I am adding rank to a cluster using the following:
var cluster = new DotCluster(givenId);
cluster.Attributes.Add("rank", new DotStringAttribute("rank", "same"));
Is this the right way?
I could not find any property available for this.
Thank you for this excellent library! It's easy to use and pretty comprehensive for my needs.
I have one question: To change the font color for a specific node, do I have to use the HTML styling as the documentation says? Like this one
using GiGraph.Dot.Extensions;
graph.Nodes.Add("Foo", node =>
{
node.Shape = DotNodeShape.Rectangle;
node.Label = @"<font color=""royalblue"" point-size=""20""><b>• Foo <font color=""black"">Bar</font></b></font><br/><i><u>Baz</u></i>".AsHtml();
});
If so, that seems to force me to rewrite the Label
field. However, I only want to style the node.
Is there a field that I failed to find?
Hello.
How can I use attribute mclimit for dot graph https://www.graphviz.org/docs/attrs/mclimit/ ?
Didn't find any references :(
Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.