Questions tagged [weighted-graph]

144 questions
0
votes
0 answers

MATLAB: Plot multiple lines with different color intensity per line

I want to plot a series of lines, with each line being colored according to a certain weight. I stumbled accross this, but the problem is, I am plotting multiple things on one graph, where only one of the plot statements should be color…
user3685285
  • 6,066
  • 13
  • 54
  • 95
0
votes
2 answers

Graph minimum weight path

I have a weighted graph. I want to find the best path from node S to node E, so that the maximum single edge weight that was inside that path is the smallest possible. For example: S -> E (w=40) S -> A (w=30) A -> E (w=20) For this graph, djikstra…
Lake
  • 4,072
  • 26
  • 36
0
votes
1 answer

How to generate igraph with known vertex connections and edge weight?

I have already derived vertex connections of the graph. It is a matrix with 3 columns. Column 1 contains vertex i, column 2 contains all its adjacent vertexes, column 3 contains the edge weight, so the data are already processed into something like…
user3381299
  • 177
  • 1
  • 7
-1
votes
1 answer

How to find shortest path between every node within K moves?

Lets say I have following graph: Now what I want is to get shortest path between every node in graph(or have -1 at that place in matrix if it is not possible to get from 1 node to other) , but that path need to have lenght less or same as K. Now I…
-1
votes
1 answer

How do I make some calculations in R?

I'm new to R and this is issue is bothering me a lot. I have a weighted and directed network and I want to do the following: I have an igraph network. I want to calculate the edge_betweenness of all edges and create a matrix with the following…
-1
votes
3 answers

How to modify dijkstra to calculate minimum maximum bottleneck route?

This is the dijkstra I have right now coded with Python, but I don't know how I should modify this to calculate the route with the smallest possible max weight. def dijkstra(g,s): for i in g.vertices: g.dist[i] = INF …
niaragua
  • 1
  • 1
-1
votes
1 answer

ETL configuration json with weighted edges OrientDB

I am using OrientDB ETL module to import a data from a CSV file to graph database. The format of the CSV file is as follows: urlid_1,urlid_2,score a,b,10 a,c,20 a,d,30 b,a,40 b,c,50 b,d,60 c,a,70 c,b,80 c,d,90 d,a,100 d,b,110 d,c,120 I want that…
-1
votes
2 answers

If there is a weight 3 from A->B and a weight 1 from B->A, does this mean that there are automatically 2 edges between A and B?

Regarding weighted graphs: If there is a weight 3 from A->B and a weight 1 from B->A, does this mean that there are 2 edges between A and B? I'm 95% sure that the answer is yes, but I'd like to be certain. I'm trying to see if directed graphs with…
Marcus Kim
  • 283
  • 2
  • 12
-2
votes
1 answer

Drawing weighted, directional graphs in Unity

I am attempting to build a project that allows users to build a flow network and then solve for the maximum flow of the network using Unity. I thought that a graph drawing library would already exist but I'm unable to find it. As I am relatively…
urandom
  • 153
  • 6
1 2 3
9
10