Child pages
  • Pajek Matrix (.mat)

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Description

The Pajek matrix format (filename extension is .mat) is slightly different. The list of vertices is the same as in Pajek (*.net) format but the list of edges and arcs is replaced by a matrix consisting of integers or real numbers which are separated bu blanks. This is and ordinary adjancey matrix.

Home Page: http://vlado.fmf.uni-lj.si/pub/networks/pajek/

Pros & Cons

The Pajek matrix format is very useful for importing network data in matrix format from a variety of sources.

Usage Hints

A network in Pajek matrix Format

Code Block
*network with a title of matrix
% comment lines within a file describing the data.
*vertices 6
      1 "Ada"      0.1646   0.2144   0.5000
      2 "Cora"     0.0481   0.3869   0.5000
      3 "Louise"   0.3472   0.1913   0.5000
      4 "Jean"     0.1063   0.5935   0.5000
      5 "Helen"    0.2892   0.6688   0.5000
      6 "Martha"   0.4630   0.5179   0.5000
*matrix
0.000 1.000 1.000 0.000 0.000 0.0000
1.000 0.000 0.000 1.000 0.000 0.0000
0.000 0.000 0.000 0.000 0.000 0.0000
0.000 0.000 0.000 0.000 1.000 0.0000
0.000 0.000 0.000 1.000 0.000 0.0000
0.000 0.000 0.000 0.000 0.000 0.0000

Acknowledgements

W. de Nooy, A. Mrvar, V. Batagelj