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
6
votes
1 answer

how to created a weighted directed graph from edge list in Networkx

I have an edge-list, it consists of two columns, I want to create a weighted directed graph such that for each row in the edge-list a directed edge with weight one goes from node in column one to node in column two. if the same row appears more than…
Ramin Zahedi
  • 455
  • 2
  • 6
  • 20
6
votes
1 answer

How to draw arrow JavaFX? (pane)

I need to make directed graph from undirected. I can draw line-Edge, but I don't know how to make arrow: public class Edge extends Group { protected Cell source; protected Cell target; Line line; public Edge(Cell source, Cell target) { …
user7347706
  • 63
  • 1
  • 1
  • 3
6
votes
1 answer

r creating an adjacency matrix from columns in a dataframe

I am interested in testing some network visualization techniques but before trying those functions I want to build an adjacency matrix (from, to) using the dataframe which is as follows. Id Gender Col_Cold_1 Col_Cold_2 Col_Cold_3 Col_Hot_1 …
Lilla Bulten
  • 137
  • 1
  • 9
6
votes
1 answer

Reading Text File of Graph data using NetworkX

I'm very new to networkX. So having problem in very basic things. I've network data in the text file in following format: InNode OutNode N1 N5 N2 N4 N3 N6 N2 N2 N4 N7 My questions are the following: 1) How to…
Beta
  • 1,638
  • 5
  • 33
  • 67
6
votes
3 answers

Is there any charting library in elixir?

I want to plot a bar graph in elixir and save it as an image. Is there any good charting library for doing this ? I tried searching on elixir.libhunt.com and github.com/h4cc/awesome-elixir, but didn't find a single package for my need. Thanks in…
vinzee93
  • 91
  • 7
6
votes
3 answers

represent allowed status transitions graph in Perl

There is something like status changes check logic in our app. Currently checking is being handled by ugly if statement I want to replace it by transition matrix: my %allowed_status_changes = ( 1 => (2,5), 2 => (1,2,3,4,5), 3 =>…
jonny
  • 1,326
  • 9
  • 44
  • 62
6
votes
3 answers

priority queue vs linked list java

I was solving BFS problem. I used PriorityQueue but I was getting wrong answer, then I used LinkedList, I got right ans. I'm unable to find the difference between them. Here are both the codes. Why both the answers are different? Code1: …
vikkz
  • 85
  • 1
  • 1
  • 8
6
votes
2 answers

Delete unconnected short paths from a graph in igraph

I am working with networks in igraph, I have a network where there are short connected nodes that overlap eachother and so we donot exaclt see the edge. I want to delete al such short connected nodes as they are not connected to the main network.…
Saad
  • 381
  • 2
  • 6
  • 12
6
votes
1 answer

Redux - Modeling state of a complex graph and triggering multiple updates and side-effects in response to a single action

Problem I am trying to design webapp with a fairly complex state, where many single actions should trigger multiple changes and updates across numerous components, including fetching and displaying data asynchronously from external endpoints. Some…
airbag
  • 75
  • 6
6
votes
2 answers

Algorithm to transform a workflow DAG into parallel resource allocation?

Say I have a graph where nodes are workloads of various kinds and edges are dependencies between the workloads. (This is a DAG since cyclical dependencies must not exist.) I also have a set of multiple agents who can perform the work. Some workload…
6
votes
1 answer

ggplot2: Add name of variable used for facet_grid

require(ggplot2) ggplot(mtcars, aes(mpg, wt)) + geom_point() + facet_grid(vs+gear ~ cyl+am) I would like to add the name of the 4 variables used for facet_grid on this graph. I suppose the best way to do so would be to add the name of the…
Remi.b
  • 17,389
  • 28
  • 87
  • 168
6
votes
1 answer

What is the replacement for setDrawCubic() which is deprecated for MPAndroidChart?

Answer: If you are using MPAndroidChart and still using setDrawCubic() method which is deprecated, the solution is to use : public enum Mode { LINEAR, STEPPED, CUBIC_BEZIER, HORIZONTAL_BEZIER } Which is defined in the…
Sijan Gurung
  • 727
  • 5
  • 12
6
votes
1 answer

Resetting default graph does not remove variables

I am looking for a way to quickly change a graph within an interactive session in Jupyter in order to test different structures. Initially I wanted to simple delete existing variables and recreate them with a different initializer. This does not…
user2051561
  • 838
  • 1
  • 7
  • 21
6
votes
1 answer

Why Graph adjacency is not defined as adjacency set, but rather adjacency list?

In Graph Theory, we know that an Vertex adjacencies can be represented using Adjacency list data structure. On contrary, adjacency set is not widely mentioned anywhere in the Graph Theory. Why is that so? Here's the pros, i can think of. As Set…
Yeo
  • 11,416
  • 6
  • 63
  • 90
6
votes
1 answer

Network graphing in Bokeh: displaying a node's connections when hovering over the node

I'm using Bokeh to create an interactive visualisation of a NetworkX graph. What I want to do is display all edges connected to a particular node when I hover over that node with the mouse. In the Bokeh User Guide there's an example that does more…
1 2 3
99
100