Questions tagged [graph]

This "graph" tag refers to a graphical data presentation, e.g. chart or diagram. For the mathematical concept use [graph-theory].

A graph is a visual representation of the relationship between two or more variables. Graphs are especially useful for recognizing broad trends or patterns in large data-sets, and thus are often used for visualising scientific data.

Related tags:


For graphs in discrete mathematics (consisting of nodes/vertices and edges/arcs/relationships which connect pairs of these nodes/vertices), please use . You might also include one of the following tags:

  • for questions on graph-related algorithms.
  • for questions on database technologies for persisting and querying graphs.
28721 questions
62
votes
6 answers

How to visualize a large network in R?

Network visualizations become common in science in practice. But as networks are increasing in size, common visualizations become less useful. There are simply too many nodes/vertices and links/edges. Often visualization efforts end up in producing…
majom
  • 7,863
  • 7
  • 55
  • 88
60
votes
4 answers

What's the fastest, pure Javascript, Graph visualization toolkit?

This question is about toolkits which draw graphs (those things composed of vertices and edges), not generic plots. The tool must be able to get a set of vertices and edges, calculate their layout, and display them either using the canvas tag, or…
fccoelho
  • 6,012
  • 10
  • 55
  • 67
59
votes
2 answers

HighCharts : Is it possible to customize the colors of individual series?

I am using HighCharts for a line graph report. In this specific report I have been asked to Customize the colours of each series. The series will always stay the same. So for example: John series: Blue dashed line Mary series: Solid Red Line Does…
Tjaart
  • 3,912
  • 2
  • 37
  • 61
59
votes
6 answers

Why Java Collection Framework doesn't contain Tree and Graph

I am familiar with Java Collection Framework which contains basic interfaces: Collection and Map. I am wondering why the Framework doesn't contain structures as Tree and Graph which are basic collections. Both can be regarded as sub types of…
卢声远 Shengyuan Lu
  • 31,208
  • 22
  • 85
  • 130
59
votes
8 answers

Finding all disconnected subgraphs in a graph

I have a graph which contains an unknown number of disconnected subgraphs. What's a good algorithm (or Java library) to find them all?
Ollie Glass
  • 19,455
  • 21
  • 76
  • 107
58
votes
6 answers

Java graph library for dynamic visualisation

I am in need of Java library for graphs that supports dynamic visualization. I need to have objects moving between the vertices and this has to be shown. 3D is not needed, a 2D representation will suffice. I am currently using JUNG but it is very…
Iustin
  • 1,220
  • 1
  • 12
  • 17
58
votes
2 answers

Count number of times a date occurs and make a graph out of it

I have a list of dates, each date in it can occur more than once. I want to count the number of times each date occurs (histogram) and display it in a graph (with the Y axis being the number of times the date occurs and the X axis being the date…
SystemX17
  • 3,637
  • 4
  • 25
  • 36
57
votes
6 answers

What is the difference between dynamic programming and greedy approach?

What is the main difference between dynamic programming and greedy approach in terms of usage? As far as I understood, the greedy approach sometimes gives an optimal solution; in other cases, the dynamic programming approach gives an optimal…
Riding Cave
  • 1,029
  • 1
  • 15
  • 32
56
votes
4 answers

What scalability issues are associated with NetworkX?

I'm interested in network analysis on large networks with millions of nodes and tens of millions of edges. I want to be able to do things like parse networks from many formats, find connected components, detect communities, and run centrality…
conradlee
  • 12,985
  • 17
  • 57
  • 93
56
votes
3 answers

How to combine 2 plots (ggplot) into one plot?

By using R, is it possible to place 2 ggplot together (i.e., on the same plot)? I wish to show a trend from 2 different data frames and instead of putting them one next to the other, I'd like to integrate them together in one plot and only to change…
adhg
  • 10,437
  • 12
  • 58
  • 94
56
votes
4 answers

gnuplot legend overlaps graph

Essentially, the problem that I am experiencing is that the legend overlaps the gnuplot graph that I am trying to plot as illustrated in the following diagram. Following is the command that I am using to plot the data. > set log y > plot…
Bill
  • 772
  • 3
  • 8
  • 16
55
votes
4 answers

Matplotlib/pyplot: How to enforce axis range?

I would like to draw a standard 2D line graph with pylot, but force the axes' values to be between 0 and 600 on the x, and 10k and 20k on the y. Let me go with an example... import pylab as…
Stuart
  • 1,251
  • 2
  • 11
  • 18
55
votes
2 answers

HighCharts turn animation false for line chart

I'm new to highCharts and want to know how I can turn off the animation for line charts. I've tried setting it to false in plotlines but no success.
user1869421
  • 837
  • 5
  • 14
  • 22
54
votes
2 answers

Second y-axis label getting cut off

I'm trying to plot two sets of data in a bar graph with matplotlib, so I'm using two axes with the twinx() method. However, the second y-axis label gets cut off. I've tried a few different methods with no success (tight_layout(), setting the…
zje
  • 3,824
  • 4
  • 25
  • 31
54
votes
5 answers

Detecting cycles in a graph using DFS: 2 different approaches and what's the difference

Note that a graph is represented as an adjacency list. I've heard of 2 approaches to find a cycle in a graph: Keep an array of boolean values to keep track of whether you visited a node before. If you run out of new nodes to go to (without hitting…
Ivan Voroshilin
  • 5,233
  • 3
  • 32
  • 61