
    hK                     8    S SK r S SKrS SKrS SKr " S S5      rg)    Nc                       \ rS rSr\S 5       rS rS rS rS r	S r
S rS	 rS
 rS rS rS rS rS rS rS rS rS rS rS rS rS rSrg)TestGEXF	   c                 l   SU l         [        R                  " 5       U l        U R                  R	                  SSS9  U R                  R	                  SSS9  U R                  R                  SSSS9  [        R                  " U R                   R                  S5      5      U l	        S	U l
        [        R                  " 5       U l        S
S0U R                  R                  S'   U R                  R	                  SSSSSS9  U R                  R	                  SSSSSS9  U R                  R	                  SSSSSS9  U R                  R	                  SSSSSS9  U R                  R                  SSSSS9  U R                  R                  SSSS9  U R                  R                  SSSS9  U R                  R                  SSSS9  U R                  R                  SSSS9  [        R                  " U R                  R                  S5      5      U l        SU l        [        R                  " 5       U l        U R                   R	                  SSS9  U R                   R	                  SSS9  U R                   R                  SSSS9  [        R                  " U R                  R                  S5      5      U l        g )Nar  <?xml version="1.0" encoding="UTF-8"?>
<gexf xmlns="http://www.gexf.net/1.2draft" version="1.2">
    <graph mode="static" defaultedgetype="directed">
        <nodes>
            <node id="0" label="Hello" />
            <node id="1" label="Word" />
        </nodes>
        <edges>
            <edge id="0" source="0" target="1" />
        </edges>
    </graph>
</gexf>
0Hello)label1World)idUTF-8a]  <?xml version="1.0" encoding="UTF-8"?><gexf xmlns="http://www.gexf.net/1.2draft" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.gexf.net/1.2draft http://www.gexf.net/1.2draft/gexf.xsd" version="1.2">
  <meta lastmodifieddate="2009-03-20">
    <creator>Gephi.org</creator>
    <description>A Web network</description>
  </meta>
  <graph defaultedgetype="directed">
    <attributes class="node">
      <attribute id="0" title="url" type="string"/>
      <attribute id="1" title="indegree" type="integer"/>
      <attribute id="2" title="frog" type="boolean">
        <default>true</default>
      </attribute>
    </attributes>
    <nodes>
      <node id="0" label="Gephi">
        <attvalues>
          <attvalue for="0" value="https://gephi.org"/>
          <attvalue for="1" value="1"/>
          <attvalue for="2" value="false"/>
        </attvalues>
      </node>
      <node id="1" label="Webatlas">
        <attvalues>
          <attvalue for="0" value="http://webatlas.fr"/>
          <attvalue for="1" value="2"/>
          <attvalue for="2" value="false"/>
        </attvalues>
      </node>
      <node id="2" label="RTGI">
        <attvalues>
          <attvalue for="0" value="http://rtgi.fr"/>
          <attvalue for="1" value="1"/>
          <attvalue for="2" value="true"/>
        </attvalues>
      </node>
      <node id="3" label="BarabasiLab">
        <attvalues>
          <attvalue for="0" value="http://barabasilab.com"/>
          <attvalue for="1" value="1"/>
          <attvalue for="2" value="true"/>
        </attvalues>
      </node>
    </nodes>
    <edges>
      <edge id="0" source="0" target="1" label="foo"/>
      <edge id="1" source="0" target="2"/>
      <edge id="2" source="1" target="0"/>
      <edge id="3" source="2" target="1"/>
      <edge id="4" source="0" target="3"/>
    </edges>
  </graph>
</gexf>
frogTnode_defaultGephizhttps://gephi.org   F)r	   urlindegreer   Webatlaszhttp://webatlas.fr   2RTGIzhttp://rtgi.fr3BarabasiLabzhttp://barabasilab.comfoor   r	   4at  <?xml version="1.0" encoding="UTF-8"?>
<gexf xmlns="http://www.gexf.net/1.2draft" version="1.2">
    <graph mode="static" defaultedgetype="undirected">
        <nodes>
            <node id="0" label="Hello" />
            <node id="1" label="Word" />
        </nodes>
        <edges>
            <edge id="0" source="0" target="1" />
        </edges>
    </graph>
</gexf>
)simple_directed_datanxDiGraphsimple_directed_graphadd_nodeadd_edgeioBytesIOencodesimple_directed_fhattribute_dataattribute_graphgraphattribute_fhsimple_undirected_dataGraphsimple_undirected_graphsimple_undirected_fh)clss    T/var/www/html/env/lib/python3.13/site-packages/networkx/readwrite/tests/test_gexf.pysetup_classTestGEXF.setup_class
   s   $  %'JJL!!!**3g*>!!**3g*>!!**3*<!#C,D,D,K,KG,T!U7p !jjl5;TN!!.1$$w$7!% 	% 	
 	$$z';ae 	% 	
 	$$v#3ad 	% 	
 	$$( 	% 	
 	$$S##U$C$$S##$6$$S##$6$$S##$6$$S##$6::c&8&8&?&?&HI&" ')hhj###,,S,@##,,S,@##,,S##,>#%::&&--g6$
     c                    U R                   n[        R                  " U R                  5      n[	        UR                  5       5      [	        UR                  5       5      :X  d   e[	        UR                  5       5      [	        UR                  5       5      :X  d   e[	        UR                  SS95      [	        UR                  SS95      :X  d   eU R                  R                  S5        g NTdatar   )r    r   	read_gexfr&   sortednodesedgesseekselfGHs      r0   !test_read_simple_directed_graphml*TestGEXF.test_read_simple_directed_graphml   s    &&LL001aggi F1779$5555aggi F1779$5555agg4g()VAGGG4F-GGGG$$Q'r3   c                 6   U R                   n[        R                  " 5       n[        R                  " X5        UR                  S5        [        R                  " U5      n[        UR                  5       5      [        UR                  5       5      :X  d   e[        UR                  5       5      [        UR                  5       5      :X  d   e[        UR                  SS95      [        UR                  SS95      :X  d   eU R                  R                  S5        g )Nr   Tr6   )r    r#   r$   r   
write_gexfr<   r8   r9   r:   r;   r&   r>   r?   fhr@   s       r0   'test_write_read_simple_directed_graphml0TestGEXF.test_write_read_simple_directed_graphml   s    &&ZZ\
a

LLaggi F1779$5555aggi F1779$5555agg4g()VAGGG4F-GGGG$$Q'r3   c                    U R                   n[        R                  " U R                  5      n[	        UR                  5       5      [	        UR                  5       5      :X  d   e[	        S UR                  5        5       5      [	        S UR                  5        5       5      :X  d   eU R                  R                  S5        g )Nc              3   8   #    U  H  n[        U5      v   M     g 7fNr9   .0es     r0   	<genexpr>?TestGEXF.test_read_simple_undirected_graphml.<locals>.<genexpr>        3AfQii   c              3   8   #    U  H  n[        U5      v   M     g 7frK   rL   rM   s     r0   rP   rQ            >
(!F1IIyrS   r   )r-   r   r8   r.   r9   r:   r;   r<   r=   s      r0   #test_read_simple_undirected_graphml,TestGEXF.test_read_simple_undirected_graphml   s    ((LL223aggi F1779$5555333v >
 wwy>
 8
 
 	
 
 	!!&&q)r3   c                    U R                   n[        R                  " U R                  5      n[	        UR                  S5      5      [	        UR                  SS95      :X  d   e[	        UR                  SS95      n[	        UR                  SS95      n[        X45       H  u  pVXV:X  a  M   e   U R                  R                  S5        g r5   )	r(   r   r8   r*   r9   r:   r;   zipr<   )r>   r?   r@   geheabs          r0   test_read_attribute_graphml$TestGEXF.test_read_attribute_graphml   s      LL**+aggdm$qwwDw/A(BBBBAGGG&'AGGG&'KDA6M6  q!r3   c                     Sn[         R                  " UR                  S5      5      n[        R                  " [
        R                  [
        R                  U5        g )Na  <?xml version="1.0" encoding="UTF-8"?>
<gexf xmlns="http://www.gexf.net/1.2draft" version='1.2'>
    <graph mode="static" defaultedgetype="undirected" name="">
        <nodes>
            <node id="0" label="Hello" />
            <node id="1" label="Word" />
        </nodes>
        <edges>
            <edge id="0" source="0" target="1" type="directed"/>
        </edges>
    </graph>
</gexf>
r   r#   r$   r%   pytestraisesr   NetworkXErrorr8   r>   srF   s      r0    test_directed_edge_in_undirected)TestGEXF.test_directed_edge_in_undirected   <     ZZ)*b&&b9r3   c                     Sn[         R                  " UR                  S5      5      n[        R                  " [
        R                  [
        R                  U5        g )Na  <?xml version="1.0" encoding="UTF-8"?>
<gexf xmlns="http://www.gexf.net/1.2draft" version='1.2'>
    <graph mode="static" defaultedgetype="directed" name="">
        <nodes>
            <node id="0" label="Hello" />
            <node id="1" label="Word" />
        </nodes>
        <edges>
            <edge id="0" source="0" target="1" type="undirected"/>
        </edges>
    </graph>
</gexf>
r   ra   re   s      r0    test_undirected_edge_in_directed)TestGEXF.test_undirected_edge_in_directed   ri   r3   c                     Sn[         R                  " UR                  S5      5      n[        R                  " [
        R                  [
        R                  U5        g )Na   <?xml version="1.0" encoding="UTF-8"?>
<gexf xmlns="http://www.gexf.net/1.2draft" version='1.2'>
    <graph mode="static" defaultedgetype="directed" name="">
        <nodes>
            <node id="0" label="Hello">
              <attvalues>
                <attvalue for='0' value='1'/>
              </attvalues>
            </node>
            <node id="1" label="Word" />
        </nodes>
        <edges>
            <edge id="0" source="0" target="1" type="undirected"/>
        </edges>
    </graph>
</gexf>
r   ra   re   s      r0   test_key_raisesTestGEXF.test_key_raises   s<    " ZZ)*b&&b9r3   c                     Sn[         R                  " UR                  S5      5      n[        R                  " USS9n[        UR                  5       5      SS/:X  d   eg )Nay  <?xml version="1.0" encoding="UTF-8"?>
<gexf xmlns="http://www.gexf.net/1.2draft" version='1.2'>
    <graph mode="static" defaultedgetype="directed" name="">
        <nodes>
            <node id="0" label="Hello" />
            <node id="1" label="Word" />
        </nodes>
        <edges>
            <edge id="0" source="0" target="1"/>
        </edges>
    </graph>
</gexf>
r   T)relabelr   Word)r#   r$   r%   r   r8   r9   r:   )r>   rf   rF   r?   s       r0   test_relabelTestGEXF.test_relabel   sP     ZZ)*LLT*aggi Wf$5555r3   c                    [         R                  " 5       nUR                  SSSS9  [         R                  " U/ SQ5        UR	                  SSSS9  S	S
0UR
                  S'   SS0UR
                  S'   [        R                  " 5       n[         R                  " X5        UR                  S5        [         R                  " U[        S9n[        UR                  5       5      [        UR                  5       5      :X  d   e[        S UR                  5        5       5      [        S UR                  5        5       5      :X  d   eUR
                  S	 UR
                  UR
                  :X  d   eg )Nr   r
   greenr	   color)r   r   r      r   ry   )r   rx   yellowr   r      edge_defaultr   	node_typec              3   8   #    U  H  n[        U5      v   M     g 7frK   rL   rM   s     r0   rP   2TestGEXF.test_default_attribute.<locals>.<genexpr>  rR   rS   c              3   8   #    U  H  n[        U5      v   M     g 7frK   rL   rM   s     r0   rP   r     rU   rS   mode)r   r,   r!   add_pathr"   r)   r#   r$   rD   r<   r8   intr9   r:   r;   rE   s       r0   test_default_attributeTestGEXF.test_default_attribute   s   HHJ	

1Cw
/
A|$	

1aQ
#*H"5#(!*ZZ\
a

LLs+aggi F1779$5555333v >
 wwy>
 8
 
 	
 
 GGFOww!''!!!r3   c                 N   [         R                  " 5       nUR                  SSSS9  [        R                  " 5       n[         R
                  " X5        UR                  S5        [         R                  " U[        S9n[        U5      S/:X  d   eUR                  S   S   S:X  d   eg )	Nr   r{   M   r   r   r}   r	   77)r   r,   r!   r#   r$   rD   r<   r8   r   listr:   rE   s       r0   test_serialize_ints_to_strings'TestGEXF.test_serialize_ints_to_strings  s~    HHJ	

1"
%ZZ\
a

LLs+Aw1#~~wwqz'"d***r3   c                    [         R                  " 5       nUR                  / SQ5        [        S5       H\  nX!R                  U   S'   X!R                  U   S'   X!R                  U   S'   X!R                  U   S'   US-   UR                  U   S'   M^     S	[
        R                  " S
5       S[         R                   S3nSR                  [         R                  " U5      5      nX4:X  d   eg )N))r   r   r   r   r   ry      r   r	   pidstartr   end<gexf xmlns="http://www.gexf.net/1.2draft" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.gexf.net/1.2draft http://www.gexf.net/1.2draft/gexf.xsd" version="1.2">
  <meta lastmodifieddate="%Y-%m-%d">
    <creator>NetworkX a  </creator>
  </meta>
  <graph defaultedgetype="undirected" mode="dynamic" name="" timeformat="long">
    <nodes>
      <node id="0" label="0" pid="0" start="0" end="1" />
      <node id="1" label="1" pid="1" start="1" end="2" />
      <node id="2" label="2" pid="2" start="2" end="3" />
      <node id="3" label="3" pid="3" start="3" end="4" />
    </nodes>
    <edges>
      <edge source="0" target="1" id="0" />
      <edge source="1" target="2" id="1" />
      <edge source="2" target="3" id="2" />
    </edges>
  </graph>
</gexf>
)
r   r,   add_edges_fromranger:   timestrftime__version__joingenerate_gexf)r>   r?   iexpectedobtaineds        r0   test_write_with_node_attributes(TestGEXF.test_write_with_node_attributes  s    HHJ	12qA GGAJt"#GGAJw !GGAJu"#GGAJw !AAGGAJu   ==45 6~~& '* 99R--a01###r3   c                    [         R                  " 5       nUR                  SSSS04SSSS04S/5        S[        R                  " S5       S[         R
                   S	3nS
R                  [         R                  " U5      5      nX#:X  d   eg )Nr   r   r   r   r   r   r   r   a  </creator>
  </meta>
  <graph defaultedgetype="undirected" mode="static" name="">
    <nodes>
      <node id="0" label="0" />
      <node id="1" label="1" />
      <node id="2" label="2" />
      <node id="3" label="3" />
    </nodes>
    <edges>
      <edge source="0" target="1" id="0" />
      <edge source="1" target="2" id="2" />
      <edge source="2" target="3" id="1" />
    </edges>
  </graph>
</gexf>r   )r   r,   r   r   r   r   r   r   )r>   r?   r   r   s       r0   test_edge_id_constructTestGEXF.test_edge_id_construct8  s    HHJ	1a$+aT1I->GH  ==45 6~~& '	* 99R--a01###r3   c                    [         R                  " S5      n[        R                  " S5      n[        R                  " X!R                  S5       Vs0 s H  o3U_M     snS5        UR                  S5      US   S   S'   S[        R                  " S	5       S
[        R                   S3nSR                  [        R                  " U5      5      nXE:X  d   eg s  snf )Nnumpyr   numberg?r   r   zedge-numberr   r   r   a_  </creator>
  </meta>
  <graph defaultedgetype="undirected" mode="static" name="">
    <attributes mode="static" class="edge">
      <attribute id="1" title="edge-number" type="float" />
    </attributes>
    <attributes mode="static" class="node">
      <attribute id="0" title="number" type="int" />
    </attributes>
    <nodes>
      <node id="0" label="0">
        <attvalues>
          <attvalue for="0" value="0" />
        </attvalues>
      </node>
      <node id="1" label="1">
        <attvalues>
          <attvalue for="0" value="1" />
        </attvalues>
      </node>
      <node id="2" label="2">
        <attvalues>
          <attvalue for="0" value="2" />
        </attvalues>
      </node>
      <node id="3" label="3">
        <attvalues>
          <attvalue for="0" value="3" />
        </attvalues>
      </node>
    </nodes>
    <edges>
      <edge source="0" target="1" id="0">
        <attvalues>
          <attvalue for="1" value="1.1" />
        </attvalues>
      </edge>
      <edge source="1" target="2" id="1" />
      <edge source="2" target="3" id="2" />
    </edges>
  </graph>
</gexf>r   )rb   importorskipr   
path_graphset_node_attributesarangefloat64r   r   r   r   r   )r>   npr?   nr   r   s         r0   test_numpy_typeTestGEXF.test_numpy_typeT  s      )MM!
q1">Aa4">I!#C!Q  ==45 6~~& )'.^ 99R--a01###g #?s   C
c                 *   [         R                  " 5       nUR                  SSS9  [        R                  " 5       n[         R
                  " X5        UR                  S5        [         R                  " U[        S9nUR                  S   S   (       d   eg )Nr   T)testattrr   r}   r   
r   r,   r!   r#   r$   rD   r<   r8   r   r:   rE   s       r0   	test_boolTestGEXF.test_bool  se    HHJ	

1t
$ZZ\
a

LLs+wwqz*%%%r3   c                    SSK Jn  [        S5      [        S5      p2[        R                  " 5       nUR                  SUSSS9  UR                  SUSS	S9  UR                  S
U* SSS9  [        R                  " 5       n[        R                  " XE5        UR                  S5        UR                  5       nUR                  S5        [        R                  " U[        S9nSU;   d   eSU;   d   eSU;   d   eUR                  S   S   U:X  d   eU" UR                  S   S   5      (       d   eUR                  S
   S   U* :X  d   eUR                  S   S   S:X  d   eUR                  S   S   S:X  d   eUR                  S
   S   S:X  d   eUR                  S   S   S:X  d   eUR                  S   S   S	:X  d   eUR                  S
   S   S:X  d   eg )Nr   )isnaninfnanr   r\   )r   strdatakeyr   r]   ry   z-infcr}   s   INFs   NaNs   -INFr   r   networkx_key)mathr   floatr   r,   r!   r#   r$   rD   r<   readr8   r   r:   )r>   r   r   r   r?   rF   filetextr@   s           r0   test_specialsTestGEXF.test_specials  s   <uSHHJ	

1sEs
;	

1sEs
;	

1tV
=ZZ\
a

779

LLs+!!!!!!("""wwqz*%,,,QWWQZ
+,,,,wwqz*%#---wwqz)$---wwqz)$---wwqz)$...wwqz.)S000wwqz.)S000wwqz.)S000r3   c                 0   [         R                  " 5       nSS/nUR                  SUS9  [        R                  " 5       n[         R
                  " X5        UR                  S5        [         R                  " U[        S9nUR                  S   S   U:X  d   eg )N)r   r   ry   )r   r   r   r   )r   r   r}   r   r   )r>   r?   
list_valuerF   r@   s        r0   test_simple_listTestGEXF.test_simple_list  st    HHJ+
	

1*
%ZZ\
a

LLs+wwqz.)Z777r3   c                    [         R                  " 5       nUR                  SSSS9  SUR                  S'   [        R
                  " 5       n[         R                  " X5        UR                  S5        [         R                  " U[        S9n[        UR                  5       5      [        UR                  5       5      :X  d   e[        S	 UR                  5        5       5      [        S
 UR                  5        5       5      :X  d   eg )Nr   r
   rv   rw   dynamicr   r   r}   c              3   8   #    U  H  n[        U5      v   M     g 7frK   rL   rM   s     r0   rP   -TestGEXF.test_dynamic_mode.<locals>.<genexpr>  rR   rS   c              3   8   #    U  H  n[        U5      v   M     g 7frK   rL   rM   s     r0   rP   r     rU   rS   )r   r,   r!   r)   r#   r$   rD   r<   r8   r   r9   r:   r;   rE   s       r0   test_dynamic_modeTestGEXF.test_dynamic_mode  s    HHJ	

1Cw
/#ZZ\
a

LLs+aggi F1779$5555333v >
 wwy>
 8
 
 	
 
r3   c           
         [         R                  " 5       nUR                  SSSS9  UR                  SSSS9  UR                  SSSSS	SSS
9  UR                  SSSSSSS9  UR                  SS5        [        R
                  " 5       n[         R                  " X5        UR                  S5        [         R                  " U[        S9n[        UR                  5       5      [        UR                  5       5      :X  d   e[        S UR                  5        5       5      [        S UR                  5        5       5      :X  d   eg )Nr   r
   rv   rw   r   r   r   ry   
undirected)r   weighttyper   r   r   )r   r	   r   r   r}   c              3   8   #    U  H  n[        U5      v   M     g 7frK   rL   rM   s     r0   rP   CTestGEXF.test_multigraph_with_missing_attributes.<locals>.<genexpr>  rR   rS   c              3   8   #    U  H  n[        U5      v   M     g 7frK   rL   rM   s     r0   rP   r     rU   rS   )r   
MultiGraphr!   r"   r#   r$   rD   r<   r8   r   r9   r:   r;   rE   s       r0   'test_multigraph_with_missing_attributes0TestGEXF.test_multigraph_with_missing_attributes  s   MMO	

1Cw
/	

1Cw
/	

1aCA1
M	

1aCuA1
=	

1aZZ\
a

LLs+aggi F1779$5555333v >
 wwy>
 8
 
 	
 
r3   c                 |   [         R                  " 5       nUR                  SSSS9  SS0UR                  S   S'   SSSS	.UR                  S   S   S
'   SSSS.UR                  S   S   S'   SUR                  S   S   S'   SUR                  S   S   S'   [        R
                  " 5       n[         R                  " XSS9  UR                  S5        [         R                  " U[        S9n[        UR                  5       5      [        UR                  5       5      :X  d   e[        S UR                  5        5       5      [        S UR                  5        5       5      :X  d   e[        R
                  " 5       n[         R                  " XSS9  UR                  S5        [         R                  " U[        S9nUR                  S   S   S   S   S:X  d   e[         R                  " 5       nUR                  SSSS9  SS0UR                  S   S'   SSSS	.UR                  S   S   S
'   SSSSS.UR                  S   S   S'   SUR                  S   S   S'   SUR                  S   S   S'   [        R
                  " 5       n[         R                  " X5        UR                  S5        [         R                  " U[        S9n[        UR                  5       5      [        UR                  5       5      :X  d   e[        S UR                  5        5       5      [        S UR                  5        5       5      :X  d   eg )Nr   r
   rv   rw   size6   vizr   )xyzposition   )rgr]   rx   zhttp://random.urlshaper   	thickness1.1draftversionr}   c              3   8   #    U  H  n[        U5      v   M     g 7frK   rL   rM   s     r0   rP   7TestGEXF.test_missing_viz_attributes.<locals>.<genexpr>  rR   rS   c              3   8   #    U  H  n[        U5      v   M     g 7frK   rL   rM   s     r0   rP   r     rU   rS   z1.2draftr\   g      ?g      ?)r   r   r]   r\   zftp://random.urlc              3   8   #    U  H  n[        U5      v   M     g 7frK   rL   rM   s     r0   rP   r     rR   rS   c              3   8   #    U  H  n[        U5      v   M     g 7frK   rL   rM   s     r0   rP   r     rU   rS   r   r,   r!   r:   r#   r$   rD   r<   r8   r   r9   r;   rE   s       r0   test_missing_viz_attributes$TestGEXF.test_missing_viz_attributes  s   HHJ	

1Cw
/#RL
5./aa(@
5*%+,13%?
5'"%8
5'")*
5+&ZZ\
aZ0

LLs+aggi F1779$5555333v >
 wwy>
 8
 
 	
 
 ZZ\ 	aZ0

LLs+wwqz% )#.#555 HHJ	

1Cw
/#RL
5./aa(@
5*%+,13S%I
5'"%7
5'")*
5+&ZZ\
a

LLs+aggi F1779$5555333v >
 wwy>
 8
 
 	
 
r3   c                 "   [         R                  " 5       nUR                  SSSS9  S/UR                  S   S'   [        R
                  " 5       n[         R                  " X5        UR                  S5        [         R                  " U[        S9n[        UR                  5       5      [        UR                  5       5      :X  d   e[        S UR                  5        5       5      [        S	 UR                  5        5       5      :X  d   e[         R                  " 5       nUR                  SSSS9  S/UR                  S   S
'   [        R
                  " 5       n[         R                  " XSS9  UR                  S5        [         R                  " U[        S9n[        UR                  5       5      [        UR                  5       5      :X  d   e[        S UR                  5        5       5      [        S UR                  5        5       5      :X  d   eg )Nr   r
   rv   rw   r   spellsr}   c              3   8   #    U  H  n[        U5      v   M     g 7frK   rL   rM   s     r0   rP   0TestGEXF.test_slice_and_spell.<locals>.<genexpr>  rR   rS   c              3   8   #    U  H  n[        U5      v   M     g 7frK   rL   rM   s     r0   rP   r     rU   rS   slicesr   r   c              3   8   #    U  H  n[        U5      v   M     g 7frK   rL   rM   s     r0   rP   r     rR   rS   c              3   8   #    U  H  n[        U5      v   M     g 7frK   rL   rM   s     r0   rP   r     rU   rS   r   rE   s       r0   test_slice_and_spellTestGEXF.test_slice_and_spell	  s   HHJ	

1Cw
/ &x
8ZZ\
a

LLs+aggi F1779$5555333v >
 wwy>
 8
 
 	
 
 HHJ	

1Cw
/ &x
8ZZ\
aZ0

LLs+aggi F1779$5555333v >
 wwy>
 8
 
 	
 
r3   c                    [         R                  " 5       nUR                  SSSSS/S9  [        R                  " 5       n[         R
                  " X5        UR                  S5        [         R                  " U[        S9n[        UR                  5       5      [        UR                  5       5      :X  d   e[        S UR                  5        5       5      [        S	 UR                  5        5       5      :X  d   eg )
Nr   r
   rv   r   r   )r	   rx   parentsr}   c              3   8   #    U  H  n[        U5      v   M     g 7frK   rL   rM   s     r0   rP   +TestGEXF.test_add_parent.<locals>.<genexpr>+  rR   rS   c              3   8   #    U  H  n[        U5      v   M     g 7frK   rL   rM   s     r0   rP   r   +  rU   rS   )r   r,   r!   r#   r$   rD   r<   r8   r   r9   r:   r;   rE   s       r0   test_add_parentTestGEXF.test_add_parent#  s    HHJ	

1CwA
?ZZ\
a

LLs+aggi F1779$5555333v >
 wwy>
 8
 
 	
 
r3    N)__name__
__module____qualname____firstlineno__classmethodr1   rA   rG   rV   r^   rg   rk   rn   rs   r   r   r   r   r   r   r   r   r   r   r   r   r  __static_attributes__r  r3   r0   r   r   	   s    z
 z
x(	(*":":":*6$"*+!$F$86$p&1@8

 *
X
4

r3   r   )r#   r   rb   networkxr   r   r  r3   r0   <module>r     s    	   d
 d
r3   