Questions tagged [graph-drawing]

Graph drawing is the process of embedding a graph (network) within a space of some kind, most typically a plane.

Graph drawing is the process of embedding a graph (network) within a space of some kind, most typically a plane. Algorithms for graph drawing generally aim to produce output with particular characteristics, such as having few edge crossings. A planar graph is one that can be drawn in a plane with no edge crossings; a planar graph layout algorithm will produce such a layout for any planar graph.

Other graph drawing algorithms provide variants such as orthogonal and/or grid-aligned drawing; these sometimes involve representing vertices as boxes rather than points. These variants are desirable for such applications as circuit layout and automatic plotting of graph-structured diagrams such as UML or database models.

107 questions
0
votes
1 answer

Why does draw() in pygraphviz/agraph not work on the server (but locally)?

I have a Python app using Pygraphviz that works fine locally, but on the server the draw function throws an error. It happens in make_svg. The following lines are the relevant part of the errors I get. (The full trail is here.) File…
Watchduck
  • 1,076
  • 1
  • 9
  • 29
0
votes
1 answer

How I check the color is match or not? (memory game with match color)

I got 2 array,for color and button private JButton[] buttons = new JButton[16]; private Color[] c={ Color.red,Color.yellow,Color.black,Color.magenta, Color.blue,Color.green,Color.cyan,Color.pink, …
0
votes
0 answers

How to add text on image like snapchat ? C# Windows forms

I'm creating app like snapchat.How to add text on image like snapchat text. Like Here is my code : private void button1_Click(object sender, EventArgs e) { FileStream fs = new FileStream(@"path\images.png", FileMode.Open,…
Hameed
  • 51
  • 4
  • 16
0
votes
0 answers

What changes can I make to this algorithm to draw a logarithmic graph best fit curve?

I've used an algorithm found here: http://faculty.cs.niu.edu/~hutchins/csci230/best-fit.htm to draw a best fit line as shown below: int pointCount = 0; //The number of readings in the graph double SumX = 0; //Sum of all the X values double…
Alarming
  • 137
  • 1
  • 3
  • 14
0
votes
1 answer

Graphing a parabola

I have to draw filled parabola now I'm just drawing parabola using: double dt = 0.0001; for(double x = -50; x < 50; x+= dt){ // drawing parabola from -50 to 50 double y = x*x; pic.drawPoint(x, y, cr, cg, cb); // x point, y point , R G…
user3476593
  • 23
  • 1
  • 5
0
votes
0 answers

Simple Graph visualisation with Javascript

I want to visualize a dynamic graph with JS code, I used Dracula JS, but I can not trigger a click handler on a node with this one ! Any idea please ? I taked a look at this link : http://bl.ocks.org/tchaymore/1249394 But my graph is dynamic, so…
Khouloud
  • 81
  • 1
  • 1
  • 10
0
votes
2 answers

Drawing lines with dimensions In Livecode

I am trying to write a small drawing program with Livecode, that will show the length of the drawn line over the line so it is available for editing, I also need to display the angles of the polygon for editing. The user should be able to select…
0
votes
1 answer

JavaFX Transition animation waiting

so quicky, I am doing program which demonstrate methods used for computer graph drawing. I need to create timeline or history of actions like ( placeVertex(x,y), moveVertex(newX,newY) etc. ) and iterate through (forward and backwards, automatically…
0
votes
0 answers

Draw and generate an image by connecting pixel points in JAVA

I am very new to this are of java and I have no idea about how can solve fallowing scenario... I have data set of 500 users. That contains X and Y coordination with the system time for every 100 ms I want to connect all pixel points according to…
I_Love_NY
  • 5
  • 1
  • 4
0
votes
2 answers

An algorithm to draw graphs without checking all pairs of vertices?

Graph drawing algorithms, such as those described here, check all the vertices two-by-two and apply additional forces if two vertices are connected by an edge. If we have a very large graph, checking all pairs of vertices would be costly. Is there…
Farzad
  • 3,288
  • 2
  • 29
  • 53
0
votes
3 answers

Issue with graphviz never completing

Can someone help me figure out why the following graph never generates in dot? I think the problem has something to do with the headport and tailport. It works if I take those out, but ideally I want those to stay for stylistic reasons. digraph G { …
Karrde
  • 1
0
votes
1 answer

NSBezierPath / Line Intersection / flatten

I'm currently porting my jruby/java2d Graph Drawing/Layouting application to macruby/cocoa. Therefore I need to get the intersection point of an open NSBezierPath with an closed NSBezierPath. In java2d I used the following trick. I flattened both…
thestoneage
  • 132
  • 1
  • 10
0
votes
1 answer

Is there a javascript graph drawing library that does balloon tree layouts?

Wikipedia's entry says balloon tree layouts are one of the common types, but I can't find any javascript drawing library that seems to support it out of the box. Am I missing one? A cheap or open source Flex/ActionScript library works too. I don't…
0
votes
1 answer

Force Directed graph visualization: Is it possible to ensure certain nodes are closer to each other than others?

I'm working on this project where I'm analysing the "closeness" of a person with his Twitter friends and followers. The closeness is measured on the basis of how many times the subject mentions others or is mentioned by others. At the end of it I…
eku
  • 3,357
  • 3
  • 19
  • 20
-1
votes
1 answer

Draw a graph from file using PhpMyGraph

In these days i'm trying to draw a graph from a file using PhpMyGraph5.0, on the autor's site (http://phpmygraph.abisvmm.nl/) there is this example file: