|
@ -29,8 +29,8 @@ |
|
|
var edges = [ |
|
|
var edges = [ |
|
|
{from: 1, to: 2, style: 'line', color: 'red', width: 3, length: 200}, // individual length definition is possible |
|
|
{from: 1, to: 2, style: 'line', color: 'red', width: 3, length: 200}, // individual length definition is possible |
|
|
{from: 1, to: 3, style: 'dash-line', width: 1, length: 200}, |
|
|
{from: 1, to: 3, style: 'dash-line', width: 1, length: 200}, |
|
|
{from: 1, to: 4, style: 'line', width: 1, length: 200}, |
|
|
|
|
|
{from: 1, to: 5, style: 'arrow', width: 3, length: 200} |
|
|
|
|
|
|
|
|
{from: 1, to: 4, style: 'line', width: 1, length: 200, label:'I\'m an edge!'}, |
|
|
|
|
|
{from: 1, to: 5, style: 'arrow', width: 3, length: 200, label:'arrows\nare cool'} |
|
|
]; |
|
|
]; |
|
|
|
|
|
|
|
|
// create a network |
|
|
// create a network |
|
|