Edges represent the logical connection between two regions in an entity. In the case of graphs, edges refer to the logical connection between two vertices, or nodes. Use this tag whenever you have a question about working with or traversing edges in a graph or a graph-based database. See also [edge-list].
Questions tagged [edges]
582 questions
0
votes
1 answer
Removing an edge from a graph
I would like to remove some edges from a graph generated using Boost graph library.
I use Boost's boost::mt19937 to generate random numbers from 1 to N(number of vertices) as shown below, and add random edges.
#include "stdafx.h"
#include…

Spaniard89
- 2,359
- 4
- 34
- 55
0
votes
1 answer
Prefuse API java creating edges
I am using prefuse lately to make some visualizations. What I do is
I load some information from a database, make a prefuse table instance for them
and make a graph based on that information. This works fine.
My question is how can I create the…

kafou
- 1
- 1
0
votes
1 answer
Rough Edges Converting SVG to PNG with PHP
I'm using the following script to generate an scaled up PNG version of an SVG.
//comparison
setBackgroundColor(new ImagickPixel('transparent'));
$svg =…

Steve
- 1
- 2
0
votes
1 answer
How I can define the edges?
I have made a code for scrolling a background in Cocos2d to create an effect of a camera, but I cant prevent the camera going beyond the edges of my background. My background is an image that is 1440*1080. My code is:
+(id) scene
{
CCScene*…

Lord Pepito
- 291
- 3
- 15
0
votes
2 answers
identifying a loop in LLVM CFG
I am writing a pass in llvm that would identify loop invariants and hoist those instructions who are using those invariants, above the loop body. But for that i need to know whether there is any back edge from one node to another. For e.g. I want to…

Vikash Joshi
- 21
- 1
- 6
0
votes
1 answer
Minimum edge weight along a path
How would I find the maximum of a set of minimum edge weights along all possibles path between arbitrary vertices (u,v)?
I was thinking a modification of Floyd-Warshall?
i.e. Path 1: s - a - b - c - d - t with weights 1 - 5 - 6 - 10 - 9
Minimum…

CyberShot
- 2,265
- 6
- 28
- 36
-1
votes
0 answers
Draw edges from nodes in one viewport to nodes in another viewport
I wonder if it is possible to draw edges from nodes in one viewport to nodes in another viewport? If so is there an example somewhere to look at?
I have made my two viewports populating them and everything is fine, but I need to let the user draw…

Sindre
- 1
-1
votes
1 answer
MxGraph JavaScript: How to calculate edge length?
I am looking for a way to calculate the length of the edges in one graph.
As an example this image:
The connecting edge contains three parts, (a,b and c)
I have no idea how to retrieve this information that I can sum up the distances of a + b +…

Stefan Blazek
- 21
- 4
-1
votes
1 answer
How to soften overflown edges on CSS
I am trying to soften those sharp edges of the orange div when sub divs got overflown as I scroll down. Can I do that with CSS? Sorry if my explanation is confusing.
screenshot

eren
- 31
- 6
-1
votes
1 answer
This python code for a graph to find all possible path runs but doesn't return any result
So, I found this code online, it worked well when I used my editor, but when I changed the edges to the graph I am working on, it only runs but returns no result, I am suspecting there's a limit to the number of edges in the original code I edited
#…

Dee04
- 1
-1
votes
1 answer
How to make soft/rounded edges using PathGeometry in .xaml C#
I am trying to draw in C# for the first time and I have a problem with positioning.
I made some background but I have problem to finish it. I always destroy the whole figure...
I need to change down edges and make them soft/rounded like on mobile…

PredragDj
- 313
- 1
- 3
- 10
-1
votes
2 answers
Why networkx list(g.edges) does not return int?
pair = list(g.edges()) print(pair)
Why is the result of the second node is not an 'int'?
result
I used firstnode = pair[a][0], secondnode = int(pair[a][1] for converting the number of the second node from a float to an int.
But I am still confused…

anqi
- 13
- 2
-1
votes
2 answers
Use HashSet as Dictionary Key - Compare all elements
I am checking if a total group of edges already contains the connection between 2 points.
I want to use HashSet's that will contain 2 vectors as Dictionary keys. Then I want to be able to call a performant Dictionary.ContainsKey(hashSet). I want the…

Mechandrius
- 323
- 2
- 12
-1
votes
1 answer
Why we find Vertical and horizontal edges in Convolutional Neural Network?
I'm working on a project of machine learning. One thing I'm not able to understand is that why we have to find vertical and horizontal edges in CNN?

Deepak Joshi
- 11
- 3
-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