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
1
vote
2 answers

How to disable auto drawing onTouchEvent on action move android?

Please have a look at this code sample taken from overridden onTouchEvent of a View, @Override public boolean onTouchEvent(MotionEvent event) { float eventX = event.getX(); float eventY = event.getY(); switch (event.getAction())…
Shree Krishna
  • 8,474
  • 6
  • 40
  • 68
1
vote
0 answers

Decision tree graph drawing tool

I am looking for a drawing tool for my Web app in ASP.NET I will generate decision trees and then I want to draw it in my Web application. If you know the right thing, notice me
Indigo_heart
  • 129
  • 11
1
vote
0 answers

how to drawing a modular graph in explicit form?

I used from networkx package in python for drawing a network. my network has a modular structure i write a code that generate this adjacency matrix but when i draw my generating graph with networkx package, this figure is obtained. and its modular…
1
vote
1 answer

Subscript and super script in R plot

How to write the following expression in R plot function: $$Acceleration (ms^{-2})$$ I have tried to use expression(), but it does not work for text and equations together. [Updated] Usually, it does not work in R Surf 3D plot. Here is an…
Rukna's
  • 71
  • 1
  • 7
1
vote
1 answer

How do I combine physics fields in SceneKit?

I'm writing a three-dimensional force-directed graph in SceneKit where I'm modeling nodes as physical spheres with fixed charges and masses. These spheres must exert radial gravitational and electrical fields in order to achieve the required…
Vatsal Manot
  • 17,695
  • 9
  • 44
  • 80
1
vote
2 answers

Graph-Drawing / TSP-Route-Drawing in C++ with "known" coordinates: How? Which Library/Tool?

i'm developing some kind of heuristics for a variation of the vehicle-routing-problem in C++. After generating a solution, i want to plot this solution. The solution is a composite of various tours, all starting and ending at a common…
sascha
  • 32,238
  • 6
  • 68
  • 110
1
vote
2 answers

Automatically rotate a graph

I'm drawing graphs with force-directed layout, and the problem is that the created graphs are oriented randomly and unpredictably, which makes looking at them somewhat confusing. For example, suppose node A is a member of the two separate graphs G1…
python dude
  • 7,980
  • 11
  • 40
  • 53
1
vote
1 answer

How to draw graph dynamically while recording?

I have successfully recorded the sound from microphone and can draw recorded sound in wav form. What I need is to draw graph dynamically when I record the sound (Like heart beat monitoring graph). Below is my code to record sound package…
user5225979
1
vote
1 answer

Graph Layout Algorithms for JGraphT

I'm using JGraphT to create a graph and I want to be able to visualise and manipulate it. There are some examples that show how to visualise the graph, but it seems that it involves quite a lot of manual code to layout the vertices, etc. I was…
remi
  • 3,914
  • 1
  • 19
  • 37
1
vote
2 answers

using graphviz to create tcp flow diagrams?

Does graphviz or it's sub-projects support tcp flow type diagrams, e.g: I've looked through the graphviz documentation and gallery, but nothing jumps out at me.
Chris Snow
  • 23,813
  • 35
  • 144
  • 309
1
vote
1 answer

Draw graph with fixed-positioned edges

I am trying to use NetworkX for Python and it was good so far, but I am stuck with drawing. My data is actually a list of crossroads in the city. Nodes are the crossroads with X,Y (Latitude, Longitude) and edges should be the roads. So far so…
Atais
  • 10,857
  • 6
  • 71
  • 111
1
vote
2 answers

VTK alternatives

I apologize if the answer was already somewhere, searching the interwebs did not return me the answer(s) I was looking for. Situation : I have a small graph (a set of Edges and Nodes that is) - Now I want to display it in an interactive manner, and…
Sean
  • 789
  • 6
  • 26
1
vote
1 answer

Interactive tree/hierarchical diagramming plug-in for jQuery?

For a project that I'm working on we need the ability for the user to create an interactive tree/hierarchical diagram. Similar to creating a mindmap but with a top-down orientation. I've evaluated the various tools but none seem to fit the…
PhD
  • 11,202
  • 14
  • 64
  • 112
1
vote
3 answers

Drawing a dynamic graph

I have a web application written with JavaServer Faces technology. The application takes n inputs and provides an output. I want the following functionality in my application. I want to have sliders for each of my inputs. I want the output to be…
Anand Sunderraman
  • 7,900
  • 31
  • 90
  • 150
1
vote
2 answers

Drawing a simple graph with WPF

I am looking to do some simple drawing with in a WPF application, I was wondering if this is a simple task or if I should look into some 3rd party libraries. Quite simply I just want to draw on an image control some points and lines between those…
Herrozerro
  • 1,601
  • 1
  • 22
  • 37