Answers.Body: <p>the <a href="https://github.com/kortschak/graphprac/blob/master/YeastL.dot" rel="nofollow noreferrer">dot file in the Git repo</a> has 6646 edges, the <a href="http://vlado.fmf.uni-lj.si/pub/networks/data/bio/Yeast/yeast.zip" rel="nofollow noreferrer">pajek file in your link</a> has 7182.</p>
  <p>Chances are the latter has been updated since.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-10-29T01:47:55.300Z
Answers.Text: Thats a good point @Rohit you need to contact the authors directly specifically whether an update has occurred
Answers.UserDisplayName: M__
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-10-27T17:10:07.327Z
Answers.LastActivityDate: 2020-10-27T17:10:07.327Z
Answers.UserDisplayName: Bastian Schiffthaler
Body: <p>I'm trying to learn graphical analysis in a biological setting.</p>
  <p>The online course suggested using the Go Programming language, so I'm new to it and help to understand why <strong>the number of edges</strong> that I read from the following code is different than from the site I'm downloading it from.</p>
  <pre><code>import (
      &quot;fmt&quot;
      &quot;log&quot;
  
      &quot;github.com/kortschak/graphprac&quot;
  )
  
  infile := &quot;YeastL.dot&quot;
  g, err := graphprac.NewGraph(infile)
  if err != nil {
      log.Fatalf(&quot;failed to read graph: %v&quot;, err)
  }
  {
      fmt.Printf(&quot;G has %d nodes and %d edges.\n&quot;, g.Nodes().Len(), g.Edges().Len())
  }
  </code></pre>
  <p>The output I'm getting is: G has 2361 nodes and 6646 edges.</p>
  <p>But from the website <a href="http://vlado.fmf.uni-lj.si/pub/networks/data/bio/Yeast/Yeast.htm" rel="nofollow noreferrer">http://vlado.fmf.uni-lj.si/pub/networks/data/bio/Yeast/Yeast.htm</a> it's suppose to read 7182 edges.</p>
  <p>Thanks!</p>
  
Tags: <go><jupyter>
Title: Number of edges in Graphical Analysis using Jupyter with Go Programming language
ThreadText: # Number of edges in Graphical Analysis using Jupyter with Go Programming language
  
  (Asked by: username_0 on 2020-10-26)
  
  I'm trying to learn graphical analysis in a biological setting.
  
  The online course suggested using the Go Programming language, so I'm new to it and help to understand why **the number of edges** that I read from the following code is different than from the site I'm downloading it from.
  
  ```
  import (
      "fmt"
      "log"
  
      "github.com/kortschak/graphprac"
  )
  
  infile := "YeastL.dot"
  g, err := graphprac.NewGraph(infile)
  if err != nil {
      log.Fatalf("failed to read graph: %v", err)
  }
  {
      fmt.Printf("G has %d nodes and %d edges.\n", g.Nodes().Len(), g.Edges().Len())
  }
  
  ```
  
  The output I'm getting is: G has 2361 nodes and 6646 edges.
  
  But from the website <http://vlado.fmf.uni-lj.si/pub/networks/data/bio/Yeast/Yeast.htm> it's suppose to read 7182 edges.
  
  Thanks!
  
  **Tags:** go, jupyter
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-10-27. Score: 2
  
  the [dot file in the Git repo](https://github.com/kortschak/graphprac/blob/master/YeastL.dot) has 6646 edges, the [pajek file in your link](http://vlado.fmf.uni-lj.si/pub/networks/data/bio/Yeast/yeast.zip) has 7182.
  
  Chances are the latter has been updated since.
  
  > **Comments:**
  > **username_2**: Thats a good point @username_0 you need to contact the authors directly specifically whether an update has occurred  
  
  ---
  
  