'Advanced Network Analysis / Pajek: Large Networks / First Steps'

Total Page:16

File Type:pdf, Size:1020Kb

'Advanced Network Analysis / Pajek: Large Networks / First Steps' ' $ Analysis and visulization of large networks with Pajek Vladimir Batagelj University of Ljubljana Vienna, St. Stephen’s Cathedral Methodenforum der Fakultat¨ fur¨ Sozialwissenschaften Universitat¨ Wien, 21-22. 6. 2007 & version: June 18, 2007 / 03 : 11% V. Batagelj: Analysis and visulization of large networks with Pajek 2 ' Outline $ 1 Networks ...................................... 1 6 Complexity of algorithms ............................. 6 7 Pajek ...................................... 7 11 Approaches to large networks ........................... 11 12 Statistics ...................................... 12 19 Clusters, clusterings, partitions, hierarchies .................... 19 20 Representations of properties ............................ 20 30 Example: Snyder and Kick World Trade ...................... 30 35 Clustering ..................................... 35 38 Contraction of cluster ............................... 38 42 Subgraph ...................................... 42 44 Important vertices in network ........................... 44 52 Dense groups .................................... 52 60 Connectivity .................................... 60 64 Cuts ........................................ 64 69 Citation weights .................................. 69 70 k-rings ....................................... 70 75 Islands ....................................... 75 Methodenforum der Fakultat¨ fur¨ Sozialwissenschaften, Universitat¨ Wien, 21-22. 6. 2007 & L L S L G L S L L % V. Batagelj: Analysis and visulization of large networks with Pajek 3 ' $ 84 Bipartite cores ................................... 84 91 Directed 4-rings .................................. 91 96 Pattern searching .................................. 96 101 Multiplication of networks ............................. 101 105 Networks from data tables ............................. 105 107 EU projects on simulation ............................. 107 116 What else? ..................................... 116 http://vlado.fmf.uni-lj.si/pub/networks/doc/tut/Vienna07.pdf Methodenforum der Fakultat¨ fur¨ Sozialwissenschaften, Universitat¨ Wien, 21-22. 6. 2007 & L L S L G L S L L % V. Batagelj: Analysis and visulization of large networks with Pajek 1 ' Networks $ A network is based on two sets – set of vertices (nodes), that represent the selected units, and set of lines (links), that represent ties between units. They determine a graph.A line can be directed – an arc, or undirected – an edge. Additional data about vertices or lines can be known – their prop- erties (attributes). For example: Alexandra Schuler/ Marion Laging-Glaser: Analyse von Snoopy Comics name/label, type, value, . Network = Graph + Data The data can be measured or computed. Methodenforum der Fakultat¨ fur¨ Sozialwissenschaften, Universitat¨ Wien, 21-22. 6. 2007 & L L S L G L S L L % V. Batagelj: Analysis and visulization of large networks with Pajek 2 ' $ Networks / Formally A network N = (V, L, P, W) consists of: • a graph G = (V, L), where V is the set of vertices and L = E ∪ A is the set of lines; A is the set of arcs and E is the set of edges. n = |V|, m = |L| • P vertex value functions / properties: p : V → A • W line value functions / weights: w : L → B Methodenforum der Fakultat¨ fur¨ Sozialwissenschaften, Universitat¨ Wien, 21-22. 6. 2007 & L L S L G L S L L % V. Batagelj: Analysis and visulization of large networks with Pajek 3 ' Example: Wolfe Monkey Data $ inter.net inter.net sex.clu age.vec rank.per *Vertices 20 *vertices 20 *vertices 20 *vertices 20 1 "m01" 1 15 1 2 "m02" 1 10 2 3 "m03" 1 10 3 4 "m04" 1 8 4 5 "m05" 1 7 5 6 "f06" 2 15 10 7 "f07" 2 5 11 8 "f08" 2 11 6 9 "f09" 2 8 12 10 "f10" 2 9 9 11 "f11" 2 16 7 12 "f12" 2 10 8 13 "f13" 2 14 18 14 "f14" 2 5 19 15 "f15" 2 7 20 16 "f16" 2 11 13 17 "f17" 2 7 14 18 "f18" 2 5 15 19 "f19" 2 15 16 20 "f20" 2 4 17 *Edges 1 2 2 1 3 10 1 4 4 1 5 5 1 6 5 1 7 9 ... 1 8 7 1 9 4 Important 1 10 notes 3: 0 is not allowed as vertex number. Pajek doesn’t support Unix text files – 1 11 3 1 12 7 lines should 1 13 be ended3 with CR LF. 1 14 2 1 15 5 1 16 1 Methodenforum der Fakult 1 at¨ 17 fur¨ Sozialwissenschaften, 4 Universitat¨ Wien, 21-22. 6. 2007 L L S L G L S L L & 1 18 1 % 2 3 5 2 4 1 2 5 3 2 6 1 2 7 4 2 8 2 2 9 6 2 10 2 2 11 5 2 12 4 2 13 3 2 14 2 2 15 2 2 16 6 2 17 3 2 18 1 2 19 1 3 4 8 3 5 9 3 6 5 3 7 11 3 8 7 3 9 8 3 10 8 3 11 14 3 12 17 3 13 9 3 14 11 3 15 11 3 16 5 3 17 9 3 18 4 V. Batagelj: Analysis and visulization of large networks with Pajek 4 ' Size of network $ The size of a network/graph is expressed by two numbers: number of vertices n = |V| and number of lines m = |L|. 1 In a simple undirected graph (no parallel edges, no loops) m ≤ 2 n(n − 1); and in a simple directed graph (no parallel arcs) m ≤ n2. The quotient γ = m is a density of graph. mmax Small networks (some tens of vertices) – can be represented by a picture and analyzed by many algorithms (UCINET, NetMiner). Also middle size networks (some hundreds of vertices) can still be represented by a picture (!?), but some analytical procedures can’t be used. Till 1990 most networks were small – they were collected by researchers using surveys, observations, archival records, . The advances in IT allowed to create networks from the data already available in the computer(s). Large networks became reality. Large networks are too big to be displayed in details; special algorithms are needed for their analysis (Pajek ). Methodenforum der Fakultat¨ fur¨ Sozialwissenschaften, Universitat¨ Wien, 21-22. 6. 2007 & L L S L G L S L L % V. Batagelj: Analysis and visulization of large networks with Pajek 5 ' Large Networks $ Large network – several thousands or millions of vertices. Can be stored in computer’s memory – otherwise huge network. Usually sparse m <<n2; typical: m = O(n) or m = O(n log n) . network size n = |V | m = |L| source ODLIS dictionary 61K 2909 18419 ODLIS online Citations SOM 168K 4470 12731 Garfield’s collection Molecula 1ATN 74K 5020 5128 Brookhaven PDB Comput. geometry 140K 7343 11898 BiBTEX bibliographies English words 2-8 520K 52652 89038 Knuth’s English words Internet traceroutes 1.7M 124651 207214 Internet Mapping Project Franklin genealogy 12M 203909 195650 Roperld.com gedcoms World-Wide-Web 3.6M 325729 1497135 Notre Dame Networks Internet Movie DB 113.6M 1324748 3792390 IMDB Wikipedia 53.8M 659388 16582425 Wikimedia US patents 82M 3774768 16522438 Nber SI internet 38M 5547916 62259968 Najdi Si Pajek datasets. Methodenforum der Fakultat¨ fur¨ Sozialwissenschaften, Universitat¨ Wien, 21-22. 6. 2007 & L L S L G L S L L % V. Batagelj: Analysis and visulization of large networks with Pajek 6 ' $ Complexity of algorithms From some thousands to some (tens) millions of units (vertices). Let us look to time complexities of some typical algorithms: T(n) 1.000 10.000 100.000 1.000.000 10.000.000 LinAlg O(n) 0.00 s 0.015 s 0.17 s 2.22 s 22.2 s LogAlg O(n log n) 0.00 s 0.06 s 0.98 s 14.4 s 2.8 m √ SqrtAlg O(n n) 0.01 s 0.32 s 10.0 s 5.27 m 2.78 h SqrAlg O(n2) 0.07 s 7.50 s 12.5 m 20.8 h 86.8 d CubAlg O(n3) 0.10 s 1.67 m 1.16 d 3.17 y 3.17 ky For the interactive use on large graphs already quadratic algorithms, O(n2), are too slow. Methodenforum der Fakultat¨ fur¨ Sozialwissenschaften, Universitat¨ Wien, 21-22. 6. 2007 & L L S L G L S L L % V. Batagelj: Analysis and visulization of large networks with Pajek 7 ' Pajek $ The main goals in the design of Pajek are: • to support abstraction by (recursive) decomposition of a large network into several smaller networks that can be treated further using more sophisti- cated methods; • to provide the user with some powerful visualization tools; • to implement a selection of efficient subquadratic algorithms for analysis of large networks. With Pajek we can: find clusters (components, neighbourhoods of ‘important’ vertices, cores, etc.) in a network, extract vertices that belong to the same clusters and show them separately, possibly with the parts of the context (detailed local view), shrink vertices in clusters and show relations among clusters (global view). Methodenforum der Fakultat¨ fur¨ Sozialwissenschaften, Universitat¨ Wien, 21-22. 6. 2007 & L L S L G L S L L % V. Batagelj: Analysis and visulization of large networks with Pajek 8 ' $ Pajek’s data types In Pajek analysis and visualization are performed using 6 data types: • network (graph), • partition (nominal or ordinal properties of vertices), • vector (numerical properties of vertices), • cluster (subset of vertices), • permutation (reordering of vertices, ordinal properties), and • hierarchy (general tree structure on vertices). Pajek supports also multi-relational, temporal and two-mode networks. Methodenforum der Fakultat¨ fur¨ Sozialwissenschaften, Universitat¨ Wien, 21-22. 6. 2007 & L L S L G L S L L % V. Batagelj: Analysis and visulization of large networks with Pajek 9 ' $ ... Pajek’s data types The power of Pajek is based on several transformations that support different transitions among these data structures. Also the menu structure of the main Pajek’s window is based on them. Pajek’s main window uses a ‘calculator’ paradigm with list-accumulator for each data type. The operations are performed on the currently active (selected) data and are also returning the results through accumulators. The procedures are available through the main window menus. Frequently used sequences of operations can be defined as macros.
Recommended publications
  • DOGS in MEDIEVAL ART Text and Illustrations by RIA HÖRTER
    289-304 _289-304 1/27/14 4:08 PM Page 294 HISTORY Medieval illuminated chronicles, breviaries, But at the same time, pestilence, famine, endless codices, psalters and manuals include a wealth dissensions, and bloody wars made it a dark time in of texts and images in which dogs play an impor- medieval Europe. tant role. Here is the story. In the early Middle Ages, the nobility had com- plete authority over a mass of commoners. Farmers BONDSMEN, FARMERS, had to turn over most of their output to the landown- NOBILITY AND CLERGY ers, and respect their privileges, including hunting, fishing and judicial rights. Historians count the Middle Ages as between the The contrasts were huge. While commoners lived 5th and 15th centuries. The development of agricul- in miserable circumstances, the nobility and clergy ture, rise of towns, extension of markets and trade; lived in luxury. the position of bondsmen, farmers, nobility and Images of medieval dogs show an almost exclu- clergy; and the evolution of secular art from the her- sive relationship with the highly placed. Bondsmen, itage of religious art were important events during serfs and farmers had no belongings; they were these centuries. themselves someone’s possession. DOGS IN MEDIEVAL ART text and illustrations by RIA HÖRTER SOURCES The sources I referred to for this article are di- verse: handwritten manuscripts, printed books, books of hours, breviaries, bestiaries and how-to books for the medieval upper class. The Rochester Bestiary is an outstanding example of a manuscript with many pictures of dogs. It is almost unbelievable that, at the beginning of the 13th century, artists could create such a beautiful and accurate work.
    [Show full text]
  • A Study in Scarlet
    A Study In Scarlet Arthur Conan Doyle This text is provided to you “as-is” without any warranty. No warranties of any kind, expressed or implied, are made to you as to the text or any medium it may be on, including but not limited to warranties of merchantablity or fitness for a particular purpose. This text was formatted from various free ASCII and HTML variants. See http://sherlock-holm.esfor an electronic form of this text and additional information about it. This text comes from the collection’s version 3.1. Table of contents Part I Mr. Sherlock Holmes . 5 The Science Of Deduction . 8 The Lauriston Garden Mystery . 12 What John Rance Had To Tell. 17 Our Advertisement Brings A Visitor . 20 Tobias Gregson Shows What He Can Do. 23 Light In The Darkness . 27 Part II On The Great Alkali Plain . 35 The Flower Of Utah . 39 John Ferrier Talks With The Prophet . 42 A Flight For Life . 44 The Avenging Angels . 48 A Continuation Of The Reminiscences Of John Watson, M.D. 52 The Conclusion . 57 1 PART I. (Being a reprint from the reminiscences of John H. Watson, M.D., late of the Army Medical Department.) CHAPTER I. Mr.Sherlock Holmes n the year 1878 I took my degree of irresistibly drained. There I stayed for some time at Doctor of Medicine of the University of a private hotel in the Strand, leading a comfortless, London, and proceeded to Netley to go meaningless existence, and spending such money I through the course prescribed for sur- as I had, considerably more freely than I ought.
    [Show full text]
  • For My Lady's Heart by Laura Kinsale
    For My Lady's Heart by Laura Kinsale GLOSSARY I've provided this glossary for the audiobook edition of For My Lady's Heart as a small glimpse into the fascinating history of our language. Some of the words listed have other definitions, but here they are limited to the meanings I used in this book. I've given alternate spellings, for those who wish to investigate further in dictionaries, and a couple of grammar hints for those of you who like to go around talking to your friends like this. You know who you are! Abbreviations: ME (Middle English); OE (Old English); OF (Old French); L (Latin) aghlich (also awly; OE, ME)—Terrifying, dreadful alaunt (OF)—A wolf-hound ambs-ace (L, OF "both aces, double ace," the lowest possible throw at dice)—Worthlessness, nought, next to nothing. a'plight (OE, "pledge")—In faith, truly, certainly, surely, in truth austringer (OF)—A keeper of goshawks aventail (OF, "air-hole")—The movable mouthpiece of a helmet avoi (also avoy; OF, unknown origin)—General exclamation of surprise or fear besant (also bezant; OF "Byzantium," where it was first minted)—A type of gold or silver coin; a gold button caitiff (also caytif; OF)—A base, mean, despicable wretch camelot (also camlot, cameline; OF)—A light, plush fabric supposedly made from camel's hair; a garment made of this fabric cheap (OE)—A purchase, a bargain ciclatoun (OF, possibly from Arabic)—A precious material; cloth of gold or other rich material comelych (ME)—Comely, lovely comlokkest (ME)—Comeliest, most handsome coquin (also cokin; OF)—Rogue, rascal cote-hardie
    [Show full text]
  • A STUDY in SCARLET and the Adventure of the Speckled Band
    A STUDY in SCARLET and The Adventure of the Speckled Band By Arthur Conan Doyle © 2008 Tantor Media, Inc. © 2008 Tantor Media, Inc © 2008 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc. © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc. © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc. © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc. © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc. © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc. © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2009 Tantor Media, Inc © 2008 Tantor Media, Inc © 2008 Tantor Media, Inc © 2008 Tantor Media, Inc © 2008 Tantor Media, Inc © 2008 Tantor Media, Inc This PDF eBook was produced in the year 2009 by Tantor Media, Incorporated, which holds the copyright thereto.
    [Show full text]
  • Notes on a Midsummer Night's Dream
    Studies in English Volume 2 Article 10 1961 Notes on A Midsummer Night's Dream James E. Savage University of Mississippi Follow this and additional works at: https://egrove.olemiss.edu/ms_studies_eng Part of the Literature in English, British Isles Commons Recommended Citation Savage, James E. (1961) "Notes on A Midsummer Night's Dream," Studies in English: Vol. 2 , Article 10. Available at: https://egrove.olemiss.edu/ms_studies_eng/vol2/iss1/10 This Article is brought to you for free and open access by the English at eGrove. It has been accepted for inclusion in Studies in English by an authorized editor of eGrove. For more information, please contact [email protected]. Savage: Notes on A Midsummer Night's Dream Notes on A Midsummer Night’s Dream James E. Savage There is almost universal agreement among scholars that A Mid­ summer Night’s Dream was written for a special occasion, perhaps a wedding within the ranks of Elizabeth’s nobility. The list of pos­ sible marriages is large. In William Shakespeare, E. K. Chambers rejects for various reasons all but two possibilities: the marriage of William, Earl of Derby to Elizabeth Vere at Greenwich on 26 January, 1595; and that of Thomas Berkeley to Elizabeth Carey on 19 Febru­ ary, 1596. Either wedding, he says, "would fit such indications of date as the play yields.”1 It is my intention in this paper to suggest the Berkeley-Carey wedding as the more likely candidate, on the basis of a passage which could well be an elaborate compliment to the parents of the groom.
    [Show full text]
  • Chapter 5 [PDF]
    Chapter 5 Cynegetical chivalry Writers of medieval cynegetical manuals claimed that the hunter, by his very nature, was possessed of “droite noblesce et gentilesce de cuer, de quel que estat que l’omme soit” [“pure nobility and gentleness of heart, no matter his estate”]. However, he was not merely noble in spirit: he was also a knight in his own realm, a domain that stretched from his lord’s (or his own) ostel to the furthest reaches of the forest and, ultimately, of the imagination. Although military knights were expected, at least in theory, to come from a distinguished lineage,1 cynegetical knights are often, or even usually, of common birth. The primary concerns of both hunters and warriors were fighting, horsemanship, and proper behavior (the definition of the last, as we will see, was slightly different for each vocation). Like a military knight, the cynegetical knight put his body in peril in order to defend his territory or livelihood from invaders, to remove evil from the world, to win glory for himself, and to serve his lord – or, with some stretch of the imagination, his God. After all, venerie, like chevalerie, was considered something of a lay order by its advocates: the hunter, no less than the knight, theoretically served God through his work and thereby theoretically reserved 1 See, for example, The Book of the Ordre of Chyualry, translated and printed by William Caxton from a French version of Ramón Lull's "Le libre del orde de cauayleria," together with Adam Loutfut's Scottish transcript (Harleian ms. 6149), ed.
    [Show full text]
  • A Study in Scarlet
    1887 SHERLOCK HOLMES A STUDY IN SCARLET Sir Arthur Conan Doyle Doyle, Sir Arthur Conan (1859-1930) - Scottish-born English writer known for his detective stories baseD around the character of Sherlock Holmes. Doyle was a physician before gaining fame as a writer and, in his later years, he devoted most of his time to the study of spiritualism and the occult. Study in Scar- let, A (1887) - A murder in London has its origins with the Mormons of America. This novel introduced Sherlock Holmes. Table Of Contents SHERLOCK HOLMES . 1 Part I Chapter 1 A STUDY IN SCARLET . 6 Chapter 2 THE SCIENCE OF DEDUCTION . 18 Chapter 3 THE LAURISTON GARDEN MYSTERY . 32 Chapter 4 WHAT JOHN RANCE HAD TO TELL . 49 Chapter 5 OUR ADVERTISEMENT BRINGS A VISITOR . 59 Chapter 6 TOBIAS GREGSON SHOWS WHAT HE CAN DO . 69 Chapter 7 LIGHT IN THE DARKNESS . 82 PART II Chapter 1 THE COUNTRY OF THE SAINTS ON THE GREAT ALKALI PLAIN . 95 Chapter 2 THE FLOWER OF UTAH . 109 Chapter 3 JOHN FERRIER TALKS WITH THE PROPHET . 119 Chapter 4 A FLIGHT FOR LIFE . 126 Chapter 5 AVENGING ANGELS . 139 Chapter 6 A CONTINUATION OF THE REMINISCENCES OF JOHN WATSON, M.D. 152 Chapter 7 THE CONCLUSION . 168 Part I, Chapter 1 A STUDY IN SCARLET BEING A REPRINT FROM THE REMINISCENCES OF JOHN H. WAT- SON, M.D., LATE OF THE ARMY MEDICAL DEPARTMENT MR. SHERLOCK HOLMES In the year 1878 I took my degree of Doctor of Medicine of the University of London, and proceeded to Netley to go through the course prescribed for sur- geons in the Army.
    [Show full text]
  • German-English II
    German−English II: M−Z German−english Dictionary Vol.II éditions eBooksFrance www.ebooksfrance.com German−english Dictionary Vol.II 1 German−English II: M−Z Adapted from : http://www.freedict.com/dictionary/index.html German−english Dictionary Vol.II 2 German−English II: M−Z German−english Dictionary Vol.II 3 German−English II: M−Z M M 4 German−English II: M−Z Mach : Do your worst!, Take it or leave it! Mach's mal halblang! : Draw it mild! mach dich sofort fertig : get ready at once Mach fix! : Make it snappy! Mach kein Theater! : Don't fuss! Mach keine Witze! : Quit joking! Mach keinen Unfug! : Keep out of mischief! Mach mal Dampf! : Pull your finger out! Mach schnell! : Buck up! mache : make machen : creates, creating, to make, making, make, makes machen Sie : have it your own way Machen Sie : Have it your own way. machen Sie drei Durchschläge : make three copies machen Sie es sich bequem : make yourself at home, make yourself comfortable Machen Sie es sich beqüm. : Make yourself at home. Machen Sie sich keine Sorgen! : Don't worry! machend : making, crafting Machenschaft : doings Machete : machete macht : makes M 5 German−English II: M−Z Macht : might, potency macht abgeneigt : disinclines macht arm : impoverishes, pauperizes macht auf : unclasps, unstops macht Ausflüchte : prevaricates macht bedeutungslos : eviscerates macht bekannt : circularizes, acquaints macht betrunken : intoxicates macht bettelarm : pauperizes macht breiter : widens macht den reißverschluß auf : unzips macht druckfest : pressurizes macht ein Schläfchen : catnaps
    [Show full text]