Wednesday, 27 December 2017

Complex and Social Networks

Complex and Social Networks

R igraph

Introduction to igraph

Delete weak correlations from network in igraph (vertices and edges)

~~~~
g=delete.edges(g, which(E(g)$weight <=.1))
g=delete.vertices(g,which(degree(g)<1))
~~~~

In R, how can I generate a subgraph from a igraph object based on multiple attribute scores?

~~~
new_graph <- induced.subgraph(old_graph, 
  V(old_graph)[ city %in% c("LOS ANGELES", "BOSTON", "KALAMAZOO") ])
~~~

The Book "Statistical Analysis of Network Data with R"

Initializing an igraph object

g <- graph.formula(1-2, 1-3, 2-3, 2-4, 3-5, 4-5, 4-6, 4-7, 5-6, 6-7) 
str(g)

Vertex labels can be changed from the default after initially creating the graph, by modifying the name vertex attribute of the graph object.

V(dg)$name <- c("Sam", "Mary", "Tom")

~~~
Useful igraph code Statistical Analysis of Network Data with R


Graph Theory

Introduction to Network Analysis

Node-level Calculations

Network Analysis and Visualization with R and igraph

R igraph manual pages

Thursday, 7 December 2017

The Ultimate Guide to Learning Anything Faster

Cited from The Ultimate Guide to Learning Anything Faster

Five reasons you might fail to become the best in the world include:
  1. You run out of time (and quit)
  2. You run out of money (and quit)
  3. You get scared (and quit)
  4. You're not serious about it (and quit)
  5. You lose interest (and quit) 
  • Model an expert who’s been there, and don’t reinvent the wheel.
  • Deconstruct the skills that will deliver 80 percent of results.
  • Stop multitasking.
  • Practice those reps, reps, reps! Then seek immediate feedback.
  • Go long and don’t quit before or during the dip.