This is an old revision of the document!
Class: SocialNetwork
Description
Class SocialNetwork calculates basic features of social network. For example, each college is a component. We calculate the component basic features such as density, diameter, average path length, number of nodes, average degree, average degree centrality, average people PageRank, average closeness, average betweenness.
Parameter
- Graph G
Return
- Matrix SN with row denotes different college, columns denote basic feature value.
Detail Information
- related modules: networkx, MySQLdb
Functions
- ShowInformation()
- GetDensity()
- GetAPL()
- GetPeopleRank()
- GetBetweenness()
- GetCloseness()
- GetDegree()
- GetDegreeCentrality()