microsoft / microsoft/automatic-graph-layout
[Question] How to render graph as image file
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 1.5k
- Forks
- 319
- Avg merge
- 38m
- Merged PRs (30d)
- 1
Description
Is there a simple example how to render the graph as an image file? I know there is SvgGraphWriter, but it throws a null-reference exception, which makes me believe that there is something else that needs to be done.
I guess it must be like: add nodes & edges, layout, write image -- with no viewer involved.
Here is my example:
var graph = new Graph("example");
graph.AddEdge("A", "B");
graph.AddEdge("B", "C");
SvgGraphWriter.Write(graph, @"C:\tmp\example.svg");
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the SvgGraphWriter.Write call and the graph construction shown in the issue. Reproduce the null-reference exception using the provided example, then inspect the graph layout and writer usage to identify the required setup. Done means documenting a minimal no-viewer example or clarifying that the request needs a code change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- computer-graphics
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100