Skip to main content
Ctrl+K
NetworkX 3.2.1 documentation - Home

Site Navigation

  • Install
  • Tutorial
  • Reference
  • Gallery
  • Developer
  • Releases
  • Guides
  • Home Page
  • GitHub

Site Navigation

  • Install
  • Tutorial
  • Reference
  • Gallery
  • Developer
  • Releases
  • Guides
  • Home Page
  • GitHub

Section Navigation

  • Introduction
  • Graph types
  • Algorithms
  • Functions
  • Graph generators
  • Linear algebra
  • Converting to and from other data formats
  • Relabeling nodes
  • Reading and writing graphs
    • Adjacency List
    • Multiline Adjacency List
    • Edge List
    • GEXF
    • GML
    • GraphML
    • JSON
    • LEDA
    • SparseGraph6
    • Pajek
    • Matrix Market
    • Network Text
  • Drawing
  • Randomness
  • Exceptions
  • Utilities
  • Glossary
  • Reference
  • Pajek
  • generate_pajek

generate_pajek#

generate_pajek(G)[source]#

Generate lines in Pajek graph format.

Parameters:
Ggraph

A Networkx graph

References

See http://vlado.fmf.uni-lj.si/pub/networks/pajek/doc/draweps.htm for format information.

On this page
  • generate_pajek()

© Copyright 2004-2023, NetworkX Developers.

Created using Sphinx 7.2.6.

Built with the PyData Sphinx Theme 0.14.2.