Questions tagged [edges]

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].

582 questions
0
votes
1 answer

Create an edge list from co-authership network in R

I am trying to create an edge list with igraph for a co-authorship network analysis project. My data is stored in a way that every author of a specific paper is listen in rows, meaning that every paper is an observation and the columns contain the…
user3731465
  • 93
  • 1
  • 7
0
votes
1 answer

Add edge between nodes if list contains part of another list

I'm trying to add edges between nodes. I have a text file which I have put into a list. The first list contains this: Title , Rating [('"$weepstake$" (1979) {(#1.2)}', '10.0'), ('"\'Til Death Do Us Part" (2006)…
0
votes
1 answer

Cytoscape.js sample code, need a full example to dynamic populate nodes and edges

I am a newbie to Cytoscape.js and try to dynamically populate nodes and edges using jsp. I couldn't find a full example code for my purpose. May someone post their sample code or point me the real online application? Thanks,
Robert Wu
  • 39
  • 3
0
votes
7 answers

Convert list of numbers into two arrays in Python

I'm trying to create a network, given the edge list. I have a list of the edges, but I need to have two arrays, "from" and "to", to create the edges. This is the data I have: 0,32 0,33 0,34 1,3 1,34 0,34 2,4 2,28 2,29 1,3 3,5 3,8 3,28 2,4 4,6 4,7…
Ilya
  • 99
  • 8
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
0
votes
1 answer

assign colour to edge when reciprocated

I have a standard edgelist: [1] 1 -> 2 [2] 1 -> 3 [3] 1 -> 6 [4] 2 -> 1 [5] 2 -> 3 [6] 2 -> 4 [7] 2 -> 5 I would like to colour the edges according to three rules: i) if the first value is less than the second ->…
user14470
  • 13
  • 1
  • 4
0
votes
1 answer

Gremlin, join multiples VERTEX base on an Id and add a EDGE in Titan graph db

Having these VERTEX maps **a**) ( County, StreetName, GroupName, Type, BaseRecId, Latitude, StreetSuffix, Longitude, StreetNumber, Zip, City ) **b**) ( SalesPrice, SalesRecId, BaseRecId, SalesDate ) I need to create EDGES ( 1 to many…
0
votes
1 answer

rounded edges/corners in DirectX (D3D9)

I created my own little 2D-Engine with DirectX (okey, should be more like a GUI in the end) and tried to create rounded edges for a simple Rectangle. Since I never done this with a graphics framework before I had no idea how to supply this. For now,…
DevilsJin
  • 109
  • 1
  • 13
0
votes
1 answer

Appearance of the button's edges in mozilla

While I open my site via Mozilla firefox, the edges of buttons is not smooth and well-rounded, I don't have this problem via IE10 or chrome, Please check the following…
0
votes
1 answer

Choosing vertices by edge weight

I have a network with two types of edges, one with edge$weight=1 and the other edge$weight=2 (to define different relationships e.g. marriage vs. kinship). I want to choose the neighbors of nodes that are linked by edge$weight=2. Then, after getting…
0
votes
2 answers

Reading in a graph in C?

So say I have a graph that reads 6 7 1 2 -2 2 3 -1 3 1 -4 3 4 -2 3 5 -3 6 4 -1 6 5 -4 where the first line indicates the number of nodes and number of edges respectively, then the rest reads the edges and weight. I know how to read the input from…
Corey
  • 115
  • 1
  • 1
  • 6
0
votes
1 answer

Stop dynamic width DIV from animating past it's edges

I've got a DIV which contains a varying amount of items from a database. I've set the DIV to animate plus/minus 894px from it's current position when the next/prev buttons are clicked. I'm now trying to stop it from animating past 0px or past it's…
Richard
  • 1
  • 1
0
votes
1 answer

Adding Edge Label Titan-Rexster

I am imlpementing the Titan graph database with Rexster and Cassandra. I try to add an edge like this in Ruby with Gremlin: query = 'a = g.addVertex(null,[name:\'' + someName + '\']); g.addEdge(null, g.getVertex(' + someVertexId + '), a,…
Automatico
  • 12,420
  • 9
  • 82
  • 110
0
votes
1 answer

Networkx edge not adding attributes correctly

I've pulled up some code I used to play with in 1.6.1 of networkx. On 1.8.1 it doesn't work when writing to gml or graphml. The problem boils down to being unable to write edge attributes inside the data dict like so: BasicGraph =…
Darkstarone
  • 4,590
  • 8
  • 37
  • 74
0
votes
2 answers

Connections in mxgraph

I want to know how to avoid bidirectional connections. For example: https://i.stack.imgur.com/4HR4H.png Is there any way to do this? I work with mxGraph, javascript. EDIT: Sorry, maybe I didn’t explain well, I mean if we have two cells (a---> b)…
user2146556
  • 21
  • 1
  • 6