|
3 | 3 | <head> |
4 | 4 | <meta charset="utf-8" /> |
5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
6 | | - <title>easygraph.classes.graphviews — EasyGraph 1.4</title> |
| 6 | + <title>easygraph.classes.graphviews — EasyGraph 1.4.1</title> |
7 | 7 | <link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" /> |
8 | 8 | <link rel="stylesheet" href="../../../_static/css/theme.css" type="text/css" /> |
9 | 9 | <link rel="stylesheet" href="../../../_static/my_theme.css" type="text/css" /> |
10 | 10 | <!--[if lt IE 9]> |
11 | 11 | <script src="../../../_static/js/html5shiv.min.js"></script> |
12 | 12 | <![endif]--> |
13 | 13 |
|
14 | | - <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> |
15 | 14 | <script src="../../../_static/jquery.js"></script> |
16 | | - <script src="../../../_static/underscore.js"></script> |
17 | 15 | <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> |
| 16 | + <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> |
18 | 17 | <script src="../../../_static/doctools.js"></script> |
19 | 18 | <script src="../../../_static/sphinx_highlight.js"></script> |
20 | 19 | <script src="../../../_static/copybutton.js"></script> |
|
28 | 27 | <nav data-toggle="wy-nav-shift" class="wy-nav-side"> |
29 | 28 | <div class="wy-side-scroll"> |
30 | 29 | <div class="wy-side-nav-search" style="background: white" > |
31 | | - <a href="../../../index.html" class="icon icon-home"> EasyGraph |
32 | | - <img src="../../../_static/logo.png" class="logo" alt="Logo"/> |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + <a href="../../../index.html" class="icon icon-home"> |
| 34 | + EasyGraph |
| 35 | + <img src="../../../_static/logo.png" class="logo" alt="Logo"/> |
33 | 36 | </a> |
34 | 37 | <div role="search"> |
35 | 38 | <form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get"> |
36 | | - <input type="text" name="q" placeholder="Search docs" /> |
| 39 | + <input type="text" name="q" placeholder="Search docs" aria-label="Search docs" /> |
37 | 40 | <input type="hidden" name="check_keywords" value="yes" /> |
38 | 41 | <input type="hidden" name="area" value="default" /> |
39 | 42 | </form> |
|
44 | 47 | <li class="toctree-l1"><a class="reference internal" href="../../../install.html">Installation</a></li> |
45 | 48 | <li class="toctree-l1"><a class="reference internal" href="../../../example.html">Examples of Graph Analysis</a></li> |
46 | 49 | <li class="toctree-l1"><a class="reference internal" href="../../../hypergraph.html">EasyHypergraph</a></li> |
47 | | -<li class="toctree-l1"><a class="reference internal" href="../../../eggpu.html">EGGPU</a></li> |
48 | 50 | <li class="toctree-l1"><a class="reference internal" href="../../../reference.html">Reference</a></li> |
49 | 51 | <li class="toctree-l1"><a class="reference internal" href="../../../tutorial.html">Tutorial</a></li> |
50 | 52 | <li class="toctree-l1"><a class="reference internal" href="../../../contributorGuide.html">Contributor Guide</a></li> |
|
67 | 69 | <div class="rst-content"> |
68 | 70 | <div role="navigation" aria-label="Page navigation"> |
69 | 71 | <ul class="wy-breadcrumbs"> |
70 | | - <li><a href="../../../index.html" class="icon icon-home"></a> »</li> |
71 | | - <li><a href="../../index.html">Module code</a> »</li> |
72 | | - <li>easygraph.classes.graphviews</li> |
| 72 | + <li><a href="../../../index.html" class="icon icon-home" aria-label="Home"></a></li> |
| 73 | + <li class="breadcrumb-item"><a href="../../index.html">Module code</a></li> |
| 74 | + <li class="breadcrumb-item active">easygraph.classes.graphviews</li> |
73 | 75 | <li class="wy-breadcrumbs-aside"> |
74 | 76 | </li> |
75 | 77 | </ul> |
|
79 | 81 | <div itemprop="articleBody"> |
80 | 82 |
|
81 | 83 | <h1>Source code for easygraph.classes.graphviews</h1><div class="highlight"><pre> |
82 | | -<span></span><span class="kn">from</span><span class="w"> </span><span class="nn">easygraph.utils</span><span class="w"> </span><span class="kn">import</span> <span class="n">only_implemented_for_Directed_graph</span> |
| 84 | +<span></span><span class="kn">from</span> <span class="nn">easygraph.utils</span> <span class="kn">import</span> <span class="n">only_implemented_for_Directed_graph</span> |
83 | 85 |
|
84 | 86 |
|
85 | 87 | <span class="n">__all__</span> <span class="o">=</span> <span class="p">[</span><span class="s2">"reverse_view"</span><span class="p">]</span> |
86 | 88 |
|
87 | 89 |
|
88 | 90 | <div class="viewcode-block" id="reverse_view"><a class="viewcode-back" href="../../../reference/easygraph.classes.html#easygraph.classes.graphviews.reverse_view">[docs]</a><span class="nd">@only_implemented_for_Directed_graph</span> |
89 | | -<span class="k">def</span><span class="w"> </span><span class="nf">reverse_view</span><span class="p">(</span><span class="n">G</span><span class="p">):</span> |
| 91 | +<span class="k">def</span> <span class="nf">reverse_view</span><span class="p">(</span><span class="n">G</span><span class="p">):</span> |
90 | 92 | <span class="n">newG</span> <span class="o">=</span> <span class="n">G</span><span class="o">.</span><span class="vm">__class__</span><span class="p">()</span> |
91 | 93 | <span class="n">newG</span><span class="o">.</span><span class="n">_graph</span> <span class="o">=</span> <span class="n">G</span> |
92 | 94 | <span class="n">newG</span><span class="o">.</span><span class="n">graph</span> <span class="o">=</span> <span class="n">G</span><span class="o">.</span><span class="n">graph</span> |
|
0 commit comments