UCINET DL format is the most common file format used by UCINET package. Gephi currently supports the fullmatrix and edgelist1 sub-formats. Full matrix format is the default for DL file extension. Unfortunately, a reference page or manual seems not to be available about UCINET file formats.

Full Matrix

Basic example

The DL sample below shows a graph with 5 nodes. An edge is created when the the cell is ‘1′.

DL N = 5
Data:
0 1 1 1 1
1 0 1 0 0
1 1 0 0 1
1 0 0 0 0
1 0 1 0 0

With node labels

This example includes labels for each node. Labels must be put in a line after the “labels:” line.

dl n=5
format = fullmatrix
labels:
barry,david,lin,pat,russ
data:
0 1 1 1 0
1 0 0 0 1
1 0 0 1 0
1 0 1 0 1
0 1 0 1 0

Edge weight

Simply replace ‘1′ values by the edge weight value, formatted as a ‘double’.

Edge list

When the data are sparse, it is often more convenient to to enter just the pairs of nodes that are connected. In the edgelist1 format, each line of data is an ordered pair of nodes, optionally followed by a value indicating the strength of the relationship.

Basic example

A five nodes graph, with labels.

DL n=5
format = edgelist1
labels:
george, sally, jim, billy, jane
data:
1 2
1 3
2 3
3 1
4 3

Labels embedded

This example includes labels in the data.

DL n=5
format = edgelist1
labels embedded:
data:
george sally
george jim
sally jim
billy george
jane jim

Edge weight

Edge weight comes as the third parameter on the row.

dl
format=edgelist1
n=3
data:
1 2 1.56263736263736
1 3 1.48687978687979
2 3 1.39597069597070
3 1 0.676190476190476