FAQ Database Discussion Community


Combining distances measures ie. colour and edge

java,colors,distance,edge
Say I have calculated the euclidean distance between two images using colour as a feature and also calculated the distance between the two images using edge. I want to test to see if combining these two distance values will give a better representation of how similar the images are. To...

Extracting nodes form dotted list (edges) in CLISP

graph,lisp,edge,land-of-lisp
I'm a "Nil" or () in Lisp World. I wanted to get a list of all nodes in edge list and I wrote a code to solve this problem. But I met some unexpected problem. (Codes from 'Land of Lisp' - chapter 8) ;; Creating edge list (defun random-node ()...

cut the tree by removing edges

java,data-structures,graph,tree,edge
Question :- removal of an edge from a given tree T will result in the formation of two separate trees, T1 and T2. Each vertex of the tree T is assigned a positive integer. Your task is to remove an edge, such that the Tree_diff of the resultant trees is...

C - Segmentation fault when adding edge to graph

c,graph,segmentation-fault,edge,adjacency-matrix
I have to use an undirected weighted graph (adjacency matrix) for this program. typedef struct graph { int n; /* Number of vertices */ Boolean *visited; /* Will be later used */ double **mat; /* It has to be a double */ } Graph; Function used to initialize the graph:...

Gremlin, join vertices of same type and add edge when the properties empNo and mgrno matches

graph,edge,vertex,titan,gremlin
I have vertices with properties like vertex("empNo","age","Date","mgrNo") a(101,20,'dd-mm-yy',0) b(102,22,'dd-mm-yy',101) Since mgrNo of b matches with empNo of a ie, a is the manager of b. I have to add an edge between a and b. Please tell me how to do this in gremlin .

Refining a query by Edge metadata

sql,database,graph,orient-db,edge
I currently have two Vertex classes, VersionSet and Version, with one non-lightweight Edge class, VersionSetToVersion. The VersionSetToVersion edge class also has a property called status which can have the value 'latest'. If I have some @rid of a VersionSet vertex (i.e. #14:1), how would I construct an orient-db style SQL...

OrientDB - Edge Property in Expand

database,select,orient-db,edge
I have 2 'V' classes in my database that are: "User" and "Cinema" and 2 'E' classes that are: "Friend" and "isGoing". My "Friend" edge is lightweight and is working fine, but whenever I try to select anything using the property inside "isGoing" (Datetime date), the select returns empty. Examples:...

merging pdf docs using node webkit ,iTextsharp and edge

pdf,itextsharp,node-webkit,edge
I am merging multiple pdf docs into one pdf using the three tools mentioned in the title. Everything is working until I try to delete the original pdf's. They are "in use" by webkit. If I close NW they are released of course. I can run the same code but...

Creating edge list in R

r,edge
I have data like this: ID=c(rep("ID1",3), rep("ID2",2), "ID3", rep("ID4",2)) item=c("a","b","c","a","c","a","b","a") data.frame(ID,item) ID1 a ID1 b ID1 c ID2 a ID2 c ID3 a ID4 b ID4 a and I would need it as a list of edges like this: a;b b;c a;c a;c b;a the first three edges coming from...

How to set the edge's length in cytoscape.js with cola

edge,cytoscape.js
I am using the latest version of cytoscape.js and cola.js. When i change : "edgelength" nothing happens. how can i do ?...

Edge Collection vs. Graph

graph,nosql,edge,arangodb,polyglot-persistance
There's one thing I don't get in ArangoDB: What's the difference between an edge collection and a graph? In which cases should I choose which?...

Removing border lines in opencv and c++

c++,opencv,edge
I have many images with and without text similar to the image above. I want to remove the lines at the edges and also remove noise if any present in the image. These lines are present only at edges as I have cropped these images from a table....

copying edges with adjacent vertices and their properties using BOOST

c++,boost,copy,edge,vertices
I'm trying to copy an edge from a graph and add it to another (with all his vertices and properties), I make something like: if (!dataG.empty()) { auto const& gr = dataG.front(); // firslt graph in G_list auto ep = edges(gr).first; //first edge in gr vertex_t from = source(*ep, gr);...

Creating edge list with additional variables in R

r,list,edge
I have data like this: ID=c(rep("ID1",3), rep("ID2",2), "ID3", rep("ID4",2)) sex=c(rep("male",3), rep("female",2), "female", rep("male",2)) item=c("a","b","c","a","c","a","b","a") df1 <- data.frame(ID,sex,item) df1 ID sex item 1 ID1 male a 2 ID1 male b 3 ID1 male c 4 ID2 female a 5 ID2 female c 6 ID3 female a 7 ID4 male b 8...

How to forecast using ragged edge data in a MIDAS model using the MIDASR package?

r,edge,forecasting,ragged
I am trying to generate a 1-step-ahead forecast of a quarterly variable using a monthly variable with the midasr package. The trouble I am having is that I can only estimate a MIDAS model when the number of monthly observations in the sample is exactly 3 times as much the...