This documents an unmaintained version of NetworkX. Please upgrade to a maintained version and see the current NetworkX documentation.


draw_kamada_kawai(G, **kwargs)[source]

Draw the graph G with a Kamada-Kawai force-directed layout.

  • G (graph) – A networkx graph
  • kwargs (optional keywords) – See networkx.draw_networkx() for a description of optional keywords, with the exception of the pos parameter which is not used by this function.