Coder Social home page Coder Social logo

cambridgeuniversitypress / firstcoursenetworkscience Goto Github PK

View Code? Open in Web Editor NEW
342.0 18.0 176.0 178.92 MB

Tutorials, datasets, and other material associated with textbook "A First Course in Network Science" by Menczer, Fortunato & Davis

Home Page: https://cambridgeuniversitypress.github.io/FirstCourseNetworkScience/

License: Other

Jupyter Notebook 99.78% Python 0.21% SCSS 0.01%
social-network indiana-university network-science textbook datasets python networkx tutorials

firstcoursenetworkscience's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

firstcoursenetworkscience's Issues

Chapter 1: Python code, convention on variables names

Not an error, but just notice that reported Python code does not always follow common naming conventions on variables: Python's variable are expected to start with small case characters, and names are exptected to be not too general.
Using one capital letter to name a variable is generally considered too naive, as reported in many tutorials, such as: https://medium.com/@dasagrivamanu/python-naming-conventions-the-10-points-you-should-know-149a9aa9f8c7

There is a reason behind such a convention: expert programmers want to avoid ambiguity with classes; in fact, capitalized names are usually given to classes.

For example,
G = nx.Graph()
could be changed to something like:
graph1 = nx.Graph()

(also note that the name of the class 'Graph' is capitalized).

I am aware that such ambiguity has been introduced in the networkx official tutorial in the first place, but students with some knownledge on Python may find reported examples odd-looking.

Louvain description

In Section 6.3.2 Modularity Optimization, shaded box illustrating the Louvain algorithm, end of item 2: "...with weight equal to the number of internal links." -> "...with weight equal to twice the number of internal links."

Chapter 0, Fig. 0.2, page 9: Colors represent film genres or languages/countries

If nodes represent actors, as said in the caption and in the inline text, it does not make any sense to color nodes according the film genre, am I right? an actor may play different roles in different movies of differerent genres. Moreover colors match suspiciously too well with clusters: it looks like that colors have been assigned after the membership to a given modularity class. Just a guess.

Question about Tutorial 7

Is it possible to change the network (eg, rewire edges) in state_transition()? One would need to do that to implement the model in section 7.3.3 of the book...

Proofreading

We need to proofread all tutorials, as we have found several typos.

  • Appendix
  • Ch 1
  • Ch 2
  • Ch 3
  • Ch 4
  • Ch 5
  • Ch 6
  • Ch 7

Post solutions to exercises

Wait for feedback from editor as to whether to only post solutions to selected problems (on Github), or to all exercises (only accessible to instructors), or a combination of both

Average shortest path formulas

In Eq. 2.2, 2.3, and 2.5 the sum over the pairs of nodes is supposed to include each pair (i,j) once or both (i,j) and (j,i) depending on whether the network is directed or undirected. This is mentioned in the text but it may be unclear and confusing. We could rewrite the formulas so that the notation $\sum_{i,j}$ always means the same thing.

Thanks to @giaruffo for flagging this issue!

page 99 and Fig. 4.1: co-citation

I could be wrong, but co-citing papers (connected with dashed blue links to the cited paper) should be both on the left of the target paper, if links points always backward in time.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.