Categories
data science

Connections Between Networks – R

This graph shows how connected each network is within a system. Each node represents a network, and each edges represents a person overlapping them. The darker the edge color, the more people spanning across the two communities. This post explains the method in a bit more detail. This graph was made in R, with the […]

Categories
Uncategorized

Setting up Python in Ubuntu – Python

Because of the Advanced Packaging Tool in Ubunut, installing all the modules for Python is pretty easy. This bit will install Numerical Python, which is needed for Pandas We can now install Pandas, for data frames Finally, we can now install iGraph for network analysis That simple!!!

Categories
Uncategorized

Links Between Networks – Python

I have 43 networks where some of the actors overlap, and what I would like to do is to visualise this overlap. The problem is that these networks combined will have more that 40,000 nodes, so it will be very messy to stick everything into one network graph. So the next best thing is to […]

Categories
Uncategorized

Mathematical Combination – Python

The idea is to print all the different combinations from a series of numbers in a list (order not important). This script will be used to automate the comparison of 40+ networks on a list :D So, if we start with a series of 1 to 5, what we want to get is So here […]

Categories
Uncategorized

Palindromic Numbers – Python

Problem 4 from the Project Euler website. The Problem A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 x 99 Find the largest palindrome made from the product of two 3-digit numbers. My Solution First I did 999 x 999 to […]

Categories
Uncategorized

Finding Prime Numbers – Python

Problem 3 from the Project Euler website. The Problem The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143? My Solution WARING: It’s right…but not efficient at all. Don’t use – your computer will hate you. I’ll come back to this one when I […]