Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Drawing a Web Graph [closed]

I'm trying to draw a graph on an ASP webpage. I'm hoping an API can be helpful, but so far I have not been able to find one.

The graph contains labeled nodes and unlabeled directional edges. The ideal output would be something like this.

Anybody know of anything pre-built than can help?

like image 801
Kenn Avatar asked Sep 16 '08 03:09

Kenn


People also ask

What is a drawing in graph theory?

A drawing of a graph or network diagram is a pictorial representation of the vertices and edges of a graph. This drawing should not be confused with the graph itself: very different layouts can correspond to the same graph. In the abstract, all that matters is which pairs of vertices are connected by edges.

In which method graph is drawing in the?

Explanation: In Stroke method, graph is drawn in the form of line by line.

Why is drawing a graph important?

Graphs are a common method to visually illustrate relationships in the data. The purpose of a graph is to present data that are too numerous or complicated to be described adequately in the text and in less space.

What is web graphing?

The webgraph describes the directed links between pages of the World Wide Web. A graph, in general, consists of several vertices, some pairs connected by edges. In a directed graph, edges are directed lines or arcs.


4 Answers

Definitely graphviz. The image on the wikipedia link you are pointing at was made in graphviz. From its description page the graph description file looked like this:

graph untitled {
    graph[bgcolor="transparent"];
    node [fontname="Bitstream Vera Sans", fontsize="22.00", shape=circle, style="bold,filled" fillcolor=white];
    edge [style=bold];
    1;2;3;4;5;6;
    6 -- 4 -- 5 -- 1 -- 2 -- 3 -- 4;
    2 -- 5;
}

If that code were saved into a file input.dot, the command they would have used to actually generate the graph would probably have been:

neato -Tsvg input.dot > graph.svg
like image 58
wxs Avatar answered Oct 02 '22 12:10

wxs


I am not sure about ASP interface, but you may want to check out graphviz.

/Allan

like image 42
Allan Wind Avatar answered Oct 02 '22 12:10

Allan Wind


We produce mxGraph, which supports ASP.NET, and most other mainstream server-side technologies. It's entirely JavaScript client-side, with just a thin layer to communicate written in .NET, so there isn't much ASP.NET required. But we do supply a ASP project for visual studio as one of the examples.

like image 23
Thomas the Tank Engine Avatar answered Oct 02 '22 13:10

Thomas the Tank Engine


I would recommend zedgraph

like image 44
Paul Dolphin Avatar answered Oct 02 '22 13:10

Paul Dolphin