Edges with and without edge connectivity can friendly coexist in the same graph. In contrast edges created/added the standard way (either declaratively in the Cytoscape constructor or by calling cy.add()) will not get edge connectivity. Only then 1) the edge will get an aux node, and thus can be the source/target of another edge, and 2) can itself have an edge at their source/target end. Important: in order to get edge connectivity you must create edges programmatically, that is by calling the cy.addEdge(s) method(s) listed above. The addEdge(s) method(s) accepts usual Cytoscape edge objects (plain JS objects) but with the specialty that source and target can refer to either a node or to another edge. Returns the given aux node's edge undefined if the edge is not in the graph (anymore) throws if the given object is not an aux node Returns the given aux node's edge ID (string) undefined if the given node is not an aux node throws if the given object is not a node Returns true if the given node is an aux node, false otherwise Returns the given edge's aux node undefined if the given edge has no aux node throws if the given object is not an edge The object returned by cy.edgeConnections() has several functions available on it: FunctionĪdds the edge to the graph source and target can refer to either a node or to another edgeĪdds all edges contained in the given array to the graph The possible config options are as follows: Config option Import the library as appropriate for your project:Ĭonst ec = cy. via direct download in the repository (probably from a tag).via npm: npm install cytoscape-edge-connections, or.Simon Williams - The Associative Model Of Data (book, 284 pages) Journal of Database Marketing, Volume 8, 4, 2001 Simon Williams - The Associative Model Of Data (24 page article) Issues in Information Systems, Volume X, No. Kovacs - A Comparison Of The Relational Database Model And The Associative Database Model (6 page article) Aux nodes are locked and do not participate in layout. Cytoscape's layout algorithms continue to work.Cytoscape's advanced edge rendering capabilities (e.g.The original graph structure is not changed existing Cytoscape traversal algorithms continue to work.Instead the aux node is just superimposed, and the extension cares about keeping the aux node position in-sync with the edge position. Note: this extension does not emulate an edge by 2 edges with the aux node in the middle. An aux node represents an edge and acts as a vehicle for connecting that edge. This extension superimposes every edge with an auxiliary node, the "aux node". This Cytoscape extension allows edges to connect other edges, according to the Associative Model of Data
0 Comments
Leave a Reply. |