<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Linear algebra — NetworkX 1.8.1 documentation</title> <link rel="stylesheet" href="../_static/networkx.css" type="text/css" /> <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT: '../', VERSION: '1.8.1', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: false }; </script> <script type="text/javascript" src="../_static/jquery.js"></script> <script type="text/javascript" src="../_static/underscore.js"></script> <script type="text/javascript" src="../_static/doctools.js"></script> <link rel="search" type="application/opensearchdescription+xml" title="Search within NetworkX 1.8.1 documentation" href="../_static/opensearch.xml"/> <link rel="top" title="NetworkX 1.8.1 documentation" href="../index.html" /> <link rel="up" title="Reference" href="pdf_reference.html" /> <link rel="next" title="adjacency_matrix" href="generated/networkx.linalg.graphmatrix.adjacency_matrix.html" /> <link rel="prev" title="florentine_families_graph" href="generated/networkx.generators.social.florentine_families_graph.html" /> </head> <body> <div style="color: black;background-color: white; font-size: 3.2em; text-align: left; padding: 15px 10px 10px 15px"> NetworkX </div> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../genindex.html" title="General Index" accesskey="I">index</a></li> <li class="right" > <a href="../py-modindex.html" title="Python Module Index" >modules</a> |</li> <li class="right" > <a href="generated/networkx.linalg.graphmatrix.adjacency_matrix.html" title="adjacency_matrix" accesskey="N">next</a> |</li> <li class="right" > <a href="generated/networkx.generators.social.florentine_families_graph.html" title="florentine_families_graph" accesskey="P">previous</a> |</li> <li><a href="http://networkx.github.com/">NetworkX Home </a> | </li> <li><a href="http://networkx.github.com/documentation.html">Documentation </a>| </li> <li><a href="http://networkx.github.com/download.html">Download </a> | </li> <li><a href="http://github.com/networkx">Developer (Github)</a></li> <li><a href="index.html" >Reference</a> »</li> <li><a href="pdf_reference.html" accesskey="U">Reference</a> »</li> </ul> </div> <div class="sphinxsidebar"> <div class="sphinxsidebarwrapper"> <h3><a href="../index.html">Table Of Contents</a></h3> <ul> <li><a class="reference internal" href="#">Linear algebra</a><ul> <li><a class="reference internal" href="#module-networkx.linalg.graphmatrix">Graph Matrix</a><ul> </ul> </li> <li><a class="reference internal" href="#module-networkx.linalg.laplacianmatrix">Laplacian Matrix</a><ul> </ul> </li> <li><a class="reference internal" href="#module-networkx.linalg.spectrum">Spectrum</a><ul> </ul> </li> <li><a class="reference internal" href="#module-networkx.linalg.attrmatrix">Attribute Matrices</a><ul> </ul> </li> </ul> </li> </ul> <h4>Previous topic</h4> <p class="topless"><a href="generated/networkx.generators.social.florentine_families_graph.html" title="previous chapter">florentine_families_graph</a></p> <h4>Next topic</h4> <p class="topless"><a href="generated/networkx.linalg.graphmatrix.adjacency_matrix.html" title="next chapter">adjacency_matrix</a></p> <div id="searchbox" style="display: none"> <h3>Quick search</h3> <form class="search" action="../search.html" method="get"> <input type="text" name="q" /> <input type="submit" value="Go" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> <p class="searchtip" style="font-size: 90%"> Enter search terms or a module, class or function name. </p> </div> <script type="text/javascript">$('#searchbox').show(0);</script> </div> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body"> <div class="section" id="linear-algebra"> <span id="linalg"></span><h1>Linear algebra<a class="headerlink" href="#linear-algebra" title="Permalink to this headline">¶</a></h1> <div class="section" id="module-networkx.linalg.graphmatrix"> <span id="graph-matrix"></span><h2>Graph Matrix<a class="headerlink" href="#module-networkx.linalg.graphmatrix" title="Permalink to this headline">¶</a></h2> <p>Adjacency matrix and incidence matrix of graphs.</p> <table border="1" class="longtable docutils"> <colgroup> <col width="10%" /> <col width="90%" /> </colgroup> <tbody valign="top"> <tr class="row-odd"><td><a class="reference internal" href="generated/networkx.linalg.graphmatrix.adjacency_matrix.html#networkx.linalg.graphmatrix.adjacency_matrix" title="networkx.linalg.graphmatrix.adjacency_matrix"><tt class="xref py py-obj docutils literal"><span class="pre">adjacency_matrix</span></tt></a>(G[, nodelist, weight])</td> <td>Return adjacency matrix of G.</td> </tr> <tr class="row-even"><td><a class="reference internal" href="generated/networkx.linalg.graphmatrix.incidence_matrix.html#networkx.linalg.graphmatrix.incidence_matrix" title="networkx.linalg.graphmatrix.incidence_matrix"><tt class="xref py py-obj docutils literal"><span class="pre">incidence_matrix</span></tt></a>(G[, nodelist, edgelist, ...])</td> <td>Return incidence matrix of G.</td> </tr> </tbody> </table> </div> <div class="section" id="module-networkx.linalg.laplacianmatrix"> <span id="laplacian-matrix"></span><h2>Laplacian Matrix<a class="headerlink" href="#module-networkx.linalg.laplacianmatrix" title="Permalink to this headline">¶</a></h2> <p>Laplacian matrix of graphs.</p> <table border="1" class="longtable docutils"> <colgroup> <col width="10%" /> <col width="90%" /> </colgroup> <tbody valign="top"> <tr class="row-odd"><td><a class="reference internal" href="generated/networkx.linalg.laplacianmatrix.laplacian_matrix.html#networkx.linalg.laplacianmatrix.laplacian_matrix" title="networkx.linalg.laplacianmatrix.laplacian_matrix"><tt class="xref py py-obj docutils literal"><span class="pre">laplacian_matrix</span></tt></a>(G[, nodelist, weight])</td> <td>Return the Laplacian matrix of G.</td> </tr> <tr class="row-even"><td><a class="reference internal" href="generated/networkx.linalg.laplacianmatrix.normalized_laplacian_matrix.html#networkx.linalg.laplacianmatrix.normalized_laplacian_matrix" title="networkx.linalg.laplacianmatrix.normalized_laplacian_matrix"><tt class="xref py py-obj docutils literal"><span class="pre">normalized_laplacian_matrix</span></tt></a>(G[, nodelist, ...])</td> <td>Return the normalized Laplacian matrix of G.</td> </tr> <tr class="row-odd"><td><a class="reference internal" href="generated/networkx.linalg.laplacianmatrix.directed_laplacian_matrix.html#networkx.linalg.laplacianmatrix.directed_laplacian_matrix" title="networkx.linalg.laplacianmatrix.directed_laplacian_matrix"><tt class="xref py py-obj docutils literal"><span class="pre">directed_laplacian_matrix</span></tt></a>(G[, nodelist, ...])</td> <td>Return the directed Laplacian matrix of G.</td> </tr> </tbody> </table> </div> <div class="section" id="module-networkx.linalg.spectrum"> <span id="spectrum"></span><h2>Spectrum<a class="headerlink" href="#module-networkx.linalg.spectrum" title="Permalink to this headline">¶</a></h2> <p>Eigenvalue spectrum of graphs.</p> <table border="1" class="longtable docutils"> <colgroup> <col width="10%" /> <col width="90%" /> </colgroup> <tbody valign="top"> <tr class="row-odd"><td><a class="reference internal" href="generated/networkx.linalg.spectrum.laplacian_spectrum.html#networkx.linalg.spectrum.laplacian_spectrum" title="networkx.linalg.spectrum.laplacian_spectrum"><tt class="xref py py-obj docutils literal"><span class="pre">laplacian_spectrum</span></tt></a>(G[, weight])</td> <td>Return eigenvalues of the Laplacian of G</td> </tr> <tr class="row-even"><td><a class="reference internal" href="generated/networkx.linalg.spectrum.adjacency_spectrum.html#networkx.linalg.spectrum.adjacency_spectrum" title="networkx.linalg.spectrum.adjacency_spectrum"><tt class="xref py py-obj docutils literal"><span class="pre">adjacency_spectrum</span></tt></a>(G[, weight])</td> <td>Return eigenvalues of the adjacency matrix of G.</td> </tr> </tbody> </table> </div> <div class="section" id="module-networkx.linalg.attrmatrix"> <span id="attribute-matrices"></span><h2>Attribute Matrices<a class="headerlink" href="#module-networkx.linalg.attrmatrix" title="Permalink to this headline">¶</a></h2> <p>Functions for constructing matrix-like objects from graph attributes.</p> <table border="1" class="longtable docutils"> <colgroup> <col width="10%" /> <col width="90%" /> </colgroup> <tbody valign="top"> <tr class="row-odd"><td><a class="reference internal" href="generated/networkx.linalg.attrmatrix.attr_matrix.html#networkx.linalg.attrmatrix.attr_matrix" title="networkx.linalg.attrmatrix.attr_matrix"><tt class="xref py py-obj docutils literal"><span class="pre">attr_matrix</span></tt></a>(G[, edge_attr, node_attr, ...])</td> <td>Returns a NumPy matrix using attributes from G.</td> </tr> <tr class="row-even"><td><a class="reference internal" href="generated/networkx.linalg.attrmatrix.attr_sparse_matrix.html#networkx.linalg.attrmatrix.attr_sparse_matrix" title="networkx.linalg.attrmatrix.attr_sparse_matrix"><tt class="xref py py-obj docutils literal"><span class="pre">attr_sparse_matrix</span></tt></a>(G[, edge_attr, ...])</td> <td>Returns a SciPy sparse matrix using attributes from G.</td> </tr> </tbody> </table> </div> </div> </div> </div> </div> <div class="clearer"></div> </div> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../genindex.html" title="General Index" >index</a></li> <li class="right" > <a href="../py-modindex.html" title="Python Module Index" >modules</a> |</li> <li class="right" > <a href="generated/networkx.linalg.graphmatrix.adjacency_matrix.html" title="adjacency_matrix" >next</a> |</li> <li class="right" > <a href="generated/networkx.generators.social.florentine_families_graph.html" title="florentine_families_graph" >previous</a> |</li> <li><a href="http://networkx.github.com/">NetworkX Home </a> | </li> <li><a href="http://networkx.github.com/documentation.html">Documentation </a>| </li> <li><a href="http://networkx.github.com/download.html">Download </a> | </li> <li><a href="http://github.com/networkx">Developer (Github)</a></li> <li><a href="index.html" >Reference</a> »</li> <li><a href="pdf_reference.html" >Reference</a> »</li> </ul> </div> <div class="footer"> © Copyright 2013, NetworkX Developers. Last updated on Oct 23, 2013. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3. </div> </body> </html>