Skip to content

edge

Syntax

edge = <from-agent-id>, <to-agent-id>, <edge-weight>

Parameters

from-agent-id
An agent ID for the source of the edge.
to-agent-id
An agent ID for the destination of the edge.
edge-weight
A real number for the initial weight of the edge.

Description

A network property that specifies an initial edge in the network.

Note

If the network is undirected, two edges are added, one in each direction. Both edges have the same weight.

Examples

The following creates a network with two initial edges:

network  MyNet {
    edge = 123, 456, 1.0
    edge = 456, 789, 0.5
}

See Also