If the *Vertices
block includes the optional graphic attributes
(coordinates, shape, size, etc.) they will be read attached to the network
as vertex attributes but values will not be interperted (i.e. Pajek's color
names will not be translated to R color names). Vertex attributes included
in a *Vector
block will be attached as vertex attributes.
Edges or Arc weights in the *Arcs
or *Edges
block are include
in the network as an attribute with the same name as the network. If no
weight is included, a default weight of 1 is used. Optional graphic
attributes or labels will be attached as edge attributes.
If the file contains an empty Arcs
block, an undirected network will
be returned. Otherwise the network will be directed, with two edges (one in
each direction) added for every row in the *Edges
block.
If the *Vertices
, *Arcs
or *Edges
blocks having timing
information included in the rows (indicated by ...
tokens), it will be
attached to the vertices with behavior determined by the time.format
option. If the 'networkDynamic'
format is used, times will be
translated to networkDynamic
's spell model with the assumtion that
the original Pajek representation was indicating discrete time chunks. For
example "[5-10]"
will become the spell [5,11]
, "[2-*]"
will become [2,Inf]
and "[7]"
will become [7,8]
. See
documentation for networkDynamic
's ?activity.attribute
for
details.
The *Arcslist
, *Edgelist
and *Events
blocks are not yet
supported.
As there is no known single complete specification for the file format,
parsing behavior has been infered from references and examples below.