asiftasleem / angular-cytoscape

An example of using Cytoscape and Dagre without depending on jQuery
https://cytoscape-dagre-demo.herokuapp.com/
7 stars 5 forks source link

How can I create a undirected graph? #1

Closed FranciscaGeorgue closed 5 years ago

FranciscaGeorgue commented 6 years ago

I could integrate your example into my project, but I do not know how I could create an undirected graph

TianrenWang commented 5 years ago

In the ng-cyto.component.ts there are some parameters about arrowed edges in the edges style. Remove or modify them to get rid of the undirectedness.

asiftasleem commented 5 years ago

Set the layout directed property to false: this.layout = this.layout || { name: 'grid', directed: false, padding: 0 };

And change the following cytoscape css property to none: 'target-arrow-shape': 'none',