Package 'Igraph'

Total Page:16

File Type:pdf, Size:1020Kb

Package 'Igraph' Package ‘igraph’ February 28, 2013 Version 0.6.5-1 Date 2013-02-27 Title Network analysis and visualization Author See AUTHORS file. Maintainer Gabor Csardi <[email protected]> Description Routines for simple graphs and network analysis. igraph can handle large graphs very well and provides functions for generating random and regular graphs, graph visualization,centrality indices and much more. Depends stats Imports Matrix Suggests igraphdata, stats4, rgl, tcltk, graph, Matrix, ape, XML,jpeg, png License GPL (>= 2) URL http://igraph.sourceforge.net SystemRequirements gmp, libxml2 NeedsCompilation yes Repository CRAN Date/Publication 2013-02-28 07:57:40 R topics documented: igraph-package . .5 aging.prefatt.game . .8 alpha.centrality . 10 arpack . 11 articulation.points . 15 as.directed . 16 1 2 R topics documented: as.igraph . 18 assortativity . 19 attributes . 21 autocurve.edges . 23 barabasi.game . 24 betweenness . 26 biconnected.components . 28 bipartite.mapping . 29 bipartite.projection . 31 bonpow . 32 canonical.permutation . 34 centralization . 36 cliques . 39 closeness . 40 clusters . 42 cocitation . 43 cohesive.blocks . 44 Combining attributes . 48 communities . 51 community.to.membership . 55 compare.communities . 56 components . 57 constraint . 58 contract.vertices . 59 conversion . 60 conversion between igraph and graphNEL graphs . 62 convex.hull . 63 decompose.graph . 64 degree . 65 degree.sequence.game . 66 dendPlot . 67 dendPlot.communities . 68 dendPlot.igraphHRG . 70 diameter . 72 dominator.tree . 73 Drawing graphs . 74 dyad.census . 80 eccentricity . 81 edge.betweenness.community . 82 edge.connectivity . 84 erdos.renyi.game . 86 evcent . 87 fastgreedy.community . 89 forest.fire.game . 90 get.adjlist . 92 get.edge.ids . 93 get.incidence . 94 get.stochastic . 95 R topics documented: 3 girth . 96 graph-isomorphism . 97 graph-motifs . 101 graph-operators . 103 graph-operators-by-name . 104 graph.adjacency . 106 graph.automorphisms . 109 graph.bfs . 110 graph.bipartite . 112 graph.constructors . 114 graph.coreness . 116 graph.data.frame . 117 graph.de.bruijn . 119 graph.density . 120 graph.dfs . 121 graph.diversity . 123 graph.famous . 125 graph.formula . 127 graph.full.bipartite . 129 graph.graphdb . 130 graph.incidence . 132 graph.kautz . 133 graph.knn . 134 graph.laplacian . 136 graph.lcf . 137 graph.matching . 138 graph.maxflow . 140 graph.strength . 142 graph.structure . 143 Graphs from adjacency lists . 150 grg.game . ..
Recommended publications
  • Practical Parallel Hypergraph Algorithms
    Practical Parallel Hypergraph Algorithms Julian Shun [email protected] MIT CSAIL Abstract v While there has been signicant work on parallel graph pro- 0 cessing, there has been very surprisingly little work on high- e0 performance hypergraph processing. This paper presents v0 v1 v1 a collection of ecient parallel algorithms for hypergraph processing, including algorithms for betweenness central- e1 ity, maximal independent set, k-core decomposition, hyper- v2 trees, hyperpaths, connected components, PageRank, and v2 v3 e single-source shortest paths. For these problems, we either 2 provide new parallel algorithms or more ecient implemen- v3 tations than prior work. Furthermore, our algorithms are theoretically-ecient in terms of work and depth. To imple- (a) Hypergraph (b) Bipartite representation ment our algorithms, we extend the Ligra graph processing Figure 1. An example hypergraph representing the groups framework to support hypergraphs, and our implementa- , , , , , , and , , and its bipartite repre- { 0 1 2} { 1 2 3} { 0 3} tions benet from graph optimizations including switching sentation. between sparse and dense traversals based on the frontier size, edge-aware parallelization, using buckets to prioritize processing of vertices, and compression. Our experiments represented as hyperedges, can contain an arbitrary number on a 72-core machine and show that our algorithms obtain of vertices. Hyperedges correspond to group relationships excellent parallel speedups, and are signicantly faster than among vertices (e.g., a community in a social network). An algorithms in existing hypergraph processing frameworks. example of a hypergraph is shown in Figure 1a. CCS Concepts • Computing methodologies → Paral- Hypergraphs have been shown to enable richer analy- lel algorithms; Shared memory algorithms.
    [Show full text]
  • Q(A) - Balance Super Edge Magic Graphs Results
    International Journal of Pure and Applied Mathematical Sciences. ISSN 0972-9828 Volume 10, Number 2 (2017), pp. 157-170 © Research India Publications http://www.ripublication.com Q(A) - Balance Super Edge Magic Graphs Results M. Rameshpandi and S. Vimala 1Assistant Professor, Department of Mathematics, Pasumpon Muthuramalinga Thevar College, Usilampatti, Madurai. 2Assistant Professor, Department of Mathematics, Mother Teresa Women’s University, Kodaikanal. Abstract Let G be (p,q)-graph in which the edges are labeled 1,2,3,4,…q so that the vertex sums are constant, mod p, then G is called an edge magic graph. Magic labeling on Q(a) balance super edge–magic graphs introduced [5]. In this paper extend my discussion of Q(a)- balance super edge magic labeling(BSEM) to few types of special graphs. AMS 2010: 05C Keywords: edge magic graph, super edge magic graph, Q(a) balance edge- magic graph. 1.INTRODUCTION Magic graphs are related to the well-known magic squares, but are not quite as famous. Magic squares are an arrangement of numbers in a square in such a way that the sum of the rows, columns and diagonals is always the same. All graphs in this paper are connected, (multi-)graphs without loop. The graph G has vertex – set V(G) and edge – set E(G). A labeling (or valuation) of a graph is a map that carries graph elements to numbers(usually to the positive or non- negative integers). Edge magic graph introduced by Sin Min Lee, Eric Seah and S.K Tan in 1992. Various author discussed in edge magic graphs like Edge magic(p,3p-1)- graphs, Zykov sums of graphs, cubic multigraphs, Edge-magicness of the composition of a cycle with a null graph.
    [Show full text]
  • On the Group-Theoretic Properties of the Automorphism Groups of Various Graphs
    ON THE GROUP-THEORETIC PROPERTIES OF THE AUTOMORPHISM GROUPS OF VARIOUS GRAPHS CHARLES HOMANS Abstract. In this paper we provide an introduction to the properties of one important connection between the theories of groups and graphs, that of the group formed by the automorphisms of a given graph. We provide examples of important results in graph theory that can be understood through group theory and vice versa, and conclude with a treatment of Frucht's theorem. Contents 1. Introduction 1 2. Fundamental Definitions, Concepts, and Theorems 2 3. Example 1: The Orbit-Stabilizer Theorem and its Application to Graph Automorphisms 4 4. Example 2: On the Automorphism Groups of the Platonic Solid Skeleton Graphs 4 5. Example 3: A Tight Bound on the Product of the Chromatic Number and Independence Number of Vertex-Transitive Graphs 6 6. Frucht's Theorem 7 7. Acknowledgements 9 8. References 9 1. Introduction Groups and graphs are two highly important kinds of structures studied in math- ematics. Interestingly, the theory of groups and the theory of graphs are deeply connected. In this paper, we examine one particular such connection: that which emerges from the observation that the automorphisms of any given graph form a group under composition. In section 2, we provide a framework for understanding the material discussed in the paper. In sections 3, 4, and 5, we demonstrate how important results in group theory illuminate some properties of automorphism groups, how the geo- metric properties of particular embeddings of graphs can be used to determine the structure of the automorphism groups of all embeddings of those graphs, and how the automorphism group can be used to determine fundamental truths about the structure of the graph.
    [Show full text]
  • Practical Parallel Hypergraph Algorithms
    Practical Parallel Hypergraph Algorithms Julian Shun [email protected] MIT CSAIL Abstract v0 While there has been significant work on parallel graph pro- e0 cessing, there has been very surprisingly little work on high- v0 v1 v1 performance hypergraph processing. This paper presents a e collection of efficient parallel algorithms for hypergraph pro- 1 v2 cessing, including algorithms for computing hypertrees, hy- v v 2 3 e perpaths, betweenness centrality, maximal independent sets, 2 v k-core decomposition, connected components, PageRank, 3 and single-source shortest paths. For these problems, we ei- (a) Hypergraph (b) Bipartite representation ther provide new parallel algorithms or more efficient imple- mentations than prior work. Furthermore, our algorithms are Figure 1. An example hypergraph representing the groups theoretically-efficient in terms of work and depth. To imple- fv0;v1;v2g, fv1;v2;v3g, and fv0;v3g, and its bipartite repre- ment our algorithms, we extend the Ligra graph processing sentation. framework to support hypergraphs, and our implementations benefit from graph optimizations including switching between improved compared to using a graph representation. Unfor- sparse and dense traversals based on the frontier size, edge- tunately, there is been little research on parallel hypergraph aware parallelization, using buckets to prioritize processing processing. of vertices, and compression. Our experiments on a 72-core The main contribution of this paper is a suite of efficient machine and show that our algorithms obtain excellent paral- parallel hypergraph algorithms, including algorithms for hy- lel speedups, and are significantly faster than algorithms in pertrees, hyperpaths, betweenness centrality, maximal inde- existing hypergraph processing frameworks.
    [Show full text]
  • Constructions and Enumeration Methods for Cubic Graphs and Trees
    Butler University Digital Commons @ Butler University Undergraduate Honors Thesis Collection Undergraduate Scholarship 2013 Constructions and Enumeration Methods for Cubic Graphs and Trees Erica R. Gilliland Butler University Follow this and additional works at: https://digitalcommons.butler.edu/ugtheses Part of the Discrete Mathematics and Combinatorics Commons Recommended Citation Gilliland, Erica R., "Constructions and Enumeration Methods for Cubic Graphs and Trees" (2013). Undergraduate Honors Thesis Collection. 360. https://digitalcommons.butler.edu/ugtheses/360 This Thesis is brought to you for free and open access by the Undergraduate Scholarship at Digital Commons @ Butler University. It has been accepted for inclusion in Undergraduate Honors Thesis Collection by an authorized administrator of Digital Commons @ Butler University. For more information, please contact [email protected]. BUTLER UNIVERSITY HONORS PROGRAM Honors Thesis Certification Please type all information in this section: Applicant Erica R. Gilliland (Name as it is to appear on diploma) Thesis title Constructions and Enumeration Methods for Cubic Graphs and Trees Intended date of commencement May 11, 2013 --~------------------------------ Read, approved, and signed by: tf -;t 'J,- J IJ Thesis adviser(s) D'rt/~ S// CWiV'-~ Date Date t.-t - 2. Z - 2.C?{3 Reader(s) Date Date Certified by Director, Honors Program Date For Honors Program use: Level of Honors conferred: University Departmental MtH1t£W1Ah"LS with ttijutt HoVJQ(5 ik1vrj,,1 r"U)U ",1-111 ttlStl HMbCS V(IIVet>i}\j HtlYlb6 froyrltm I Constructions and Enumeration Methods for Cubic Graphs and Trees Erica R. Gilliland A Thesis Presented to the Department of Mathematics College of Liberal Arts and Sciences and Honors Program of Butler University III Partial Fulfillment of the ncCIuirclllcnts for G rae! ua lion Honors Submitted: April 2:3, 2()1:3 Constructions and Enumeration Methods for Cubic Graphs and Trees Erica It Gilliland Under the supervision of Dr.
    [Show full text]
  • Enumeration of Unlabeled Graph Classes a Study of Tree Decompositions and Related Approaches
    Enumeration of unlabeled graph classes A study of tree decompositions and related approaches Jessica Shi Advisor: Jérémie Lumbroso Independent Work Report Fall, 2015 Abstract In this paper, we study the enumeration of certain classes of graphs that can be fully charac- terized by tree decompositions; these classes are particularly significant due to the algorithmic improvements derived from tree decompositions on classically NP-complete problems on these classes [12, 7, 17, 35]. Previously, Chauve et al. [6] and Iriza [26] constructed grammars from the split decomposition trees of distance hereditary graphs and 3-leaf power graphs. We extend upon these results to obtain an upper bound grammar for parity graphs. Also, Nakano et al. [25] used the vertex incremental characterization of distance hereditary graphs to obtain upper bounds. We constructively enumerate (6;2)-chordal bipartite graphs, (C5, bull, gem, co-gem)-free graphs, and parity graphs using their vertex incremental characterization and extend upon Nakano et al.’s results to analytically obtain upper bounds of O7n and O11n for (6;2)-chordal bipartite graphs and (C5, bull, gem, co-gem)-free graphs respectively. 1. Introduction 1.1. Context The technique of decomposing graphs into trees has been an object of significant interest due to its applications on classical problems in graph theory. Indeed, many graph theoretic problems are inherently difficult due to the lack of recursive structure in graphs, and recursion has historically offered efficient solutions to challenging problems. In this sense, classifying graphs in terms of trees is of particular interest, since it associates a recursive structure to these graphs.
    [Show full text]
  • Empire Maps on Surfaces Arxiv:1106.4235V1 [Math.GT]
    University of Durham Final year project Empire Maps on Surfaces An exploration into colouring empire maps on the sphere and higher genus surfaces Author: Supervisor: Caspar de Haes Dr Vitaliy Kurlin D C 0 7 8 0 E 6 9 5 10 0 0 4 11 B 1' 3' F 3 5' 12 12' 0 7' 0 2 10' 2 A 13 9' A 1 1 8' 11' 0 0 0' 11 6' 4 4' 2' F 12 3 B 0 0 9 6 5 10 C E 0 7 8 0 arXiv:1106.4235v1 [math.GT] 21 Jun 2011 D April 28, 2011 Abstract This report is an introduction to mathematical map colouring and the problems posed by Heawood in his paper of 1890. There will be a brief discussion of the Map Colour Theorem; then we will move towards investigating empire maps in the plane and the recent contri- butions by Wessel. Finally we will conclude with a discussion of all known results for empire maps on higher genus surfaces and prove Heawoods Empire Conjecture in a previously unknown case. Contents 1 Introduction 3 1.1 Overview of the Problem . 3 1.2 History of the Problem . 3 1.3 Chapter Plan . 5 2 Graphs 6 2.1 Terminology and Notation . 6 2.2 Complete Graphs . 8 3 Surfaces 9 3.1 Surfaces and Embeddings . 9 3.2 Euler Characteristic . 10 3.3 Orientability . 11 3.4 Classification of surfaces . 11 4 Map Colouring 14 4.1 Maps and Colouring . 14 4.2 Dual Graphs . 15 4.3 Colouring Graphs .
    [Show full text]
  • Adjacency Matrix
    CSE 373 Graphs 3: Implementation reading: Weiss Ch. 9 slides created by Marty Stepp http://www.cs.washington.edu/373/ © University of Washington, all rights reserved. 1 Implementing a graph • If we wanted to program an actual data structure to represent a graph, what information would we need to store? for each vertex? for each edge? 1 2 3 • What kinds of questions would we want to be able to answer quickly: 4 5 6 about a vertex? about edges / neighbors? 7 about paths? about what edges exist in the graph? • We'll explore three common graph implementation strategies: edge list , adjacency list , adjacency matrix 2 Edge list • edge list : An unordered list of all edges in the graph. an array, array list, or linked list • advantages : 1 2 3 easy to loop/iterate over all edges 4 5 6 • disadvantages : hard to quickly tell if an edge 7 exists from vertex A to B hard to quickly find the degree of a vertex (how many edges touch it) 0 1 2 3 4 56 7 8 (1, 2) (1, 4) (1, 7) (2, 3) 2, 5) (3, 6)(4, 7) (5, 6) (6, 7) 3 Graph operations • Using an edge list, how would you find: all neighbors of a given vertex? the degree of a given vertex? whether there is an edge from A to B? 1 2 3 whether there are any loops (self-edges)? • What is the Big-Oh of each operation? 4 5 6 7 0 1 2 3 4 56 7 8 (1, 2) (1, 4) (1, 7) (2, 3) 2, 5) (3, 6)(4, 7) (5, 6) (6, 7) 4 Adjacency matrix • adjacency matrix : An N × N matrix where: the non-diagonal entry a[i,j] is the number of edges joining vertex i and vertex j (or the weight of the edge joining vertex i and vertex j).
    [Show full text]
  • Cayley Graphs of PSL(2) Over Finite Commutative Rings Kathleen Bell Western Kentucky University, [email protected]
    Western Kentucky University TopSCHOLAR® Masters Theses & Specialist Projects Graduate School Spring 2018 Cayley Graphs of PSL(2) over Finite Commutative Rings Kathleen Bell Western Kentucky University, [email protected] Follow this and additional works at: https://digitalcommons.wku.edu/theses Part of the Algebra Commons, and the Other Mathematics Commons Recommended Citation Bell, Kathleen, "Cayley Graphs of PSL(2) over Finite Commutative Rings" (2018). Masters Theses & Specialist Projects. Paper 2102. https://digitalcommons.wku.edu/theses/2102 This Thesis is brought to you for free and open access by TopSCHOLAR®. It has been accepted for inclusion in Masters Theses & Specialist Projects by an authorized administrator of TopSCHOLAR®. For more information, please contact [email protected]. CAYLEY GRAPHS OF P SL(2) OVER FINITE COMMUTATIVE RINGS A Thesis Presented to The Faculty of the Department of Mathematics Western Kentucky University Bowling Green, Kentucky In Partial Fulfillment Of the Requirements for the Degree Master of Science By Kathleen Bell May 2018 ACKNOWLEDGMENTS I have been blessed with the support of many people during my time in graduate school; without them, this thesis would not have been completed. To my parents: thank you for prioritizing my education from the beginning. It is because of you that I love learning. To my fianc´e,who has spent several \dates" making tea and dinner for me while I typed math: thank you for encouraging me and believing in me. To Matthew, who made grad school fun: thank you for truly being a best friend. I cannot imagine the past two years without you. To the math faculty at WKU: thank you for investing your time in me.
    [Show full text]
  • Graph Automorphism Groups
    Graph Automorphism Groups Robert A. Beeler, Ph.D. East Tennessee State University February 23, 2018 Robert A. Beeler, Ph.D. (East Tennessee State University)Graph Automorphism Groups February 23, 2018 1 / 1 What is a graph? A graph G =(V , E) is a set of vertices, V , together with as set of edges, E. For our purposes, each edge will be an unordered pair of distinct vertices. a e b d c V (G)= {a, b, c, d, e} E(G)= {ab, ae, bc, be, cd, de} Robert A. Beeler, Ph.D. (East Tennessee State University)Graph Automorphism Groups February 23, 2018 2 / 1 Graph Automorphisms A graph automorphism is simply an isomorphism from a graph to itself. In other words, an automorphism on a graph G is a bijection φ : V (G) → V (G) such that uv ∈ E(G) if and only if φ(u)φ(v) ∈ E(G). Note that graph automorphisms preserve adjacency. In layman terms, a graph automorphism is a symmetry of the graph. Robert A. Beeler, Ph.D. (East Tennessee State University)Graph Automorphism Groups February 23, 2018 3 / 1 An Example Consider the following graph: a d b c Robert A. Beeler, Ph.D. (East Tennessee State University)Graph Automorphism Groups February 23, 2018 4 / 1 An Example (Part 2) One automorphism simply maps every vertex to itself. This is the identity automorphism. a a d b d b c 7→ c e =(a)(b)(c)(d) Robert A. Beeler, Ph.D. (East Tennessee State University)Graph Automorphism Groups February 23, 2018 5 / 1 An Example (Part 3) One automorphism switches vertices a and c.
    [Show full text]
  • The Nonorientable Genus of Complete Tripartite Graphs
    The nonorientable genus of complete tripartite graphs M. N. Ellingham∗ Department of Mathematics, 1326 Stevenson Center Vanderbilt University, Nashville, TN 37240, U. S. A. [email protected] Chris Stephensy Department of Mathematics, 1326 Stevenson Center Vanderbilt University, Nashville, TN 37240, U. S. A. [email protected] Xiaoya Zhaz Department of Mathematical Sciences Middle Tennessee State University, Murfreesboro, TN 37132, U.S.A. [email protected] October 6, 2003 Abstract In 1976, Stahl and White conjectured that the nonorientable genus of Kl;m;n, where l m (l 2)(m+n 2) ≥ ≥ n, is − − . The authors recently showed that the graphs K3;3;3 , K4;4;1, and K4;4;3 2 ¡ are counterexamples to this conjecture. Here we prove that apart from these three exceptions, the conjecture is true. In the course of the paper we introduce a construction called a transition graph, which is closely related to voltage graphs. 1 Introduction In this paper surfaces are compact 2-manifolds without boundary. The orientable surface of genus h, denoted S , is the sphere with h handles added, where h 0. The nonorientable surface of genus h ≥ k, denoted N , is the sphere with k crosscaps added, where k 1. A graph is said to be embeddable k ≥ on a surface if it can be drawn on that surface in such a way that no two edges cross. Such a drawing ∗Supported by NSF Grants DMS-0070613 and DMS-0215442 ySupported by NSF Grant DMS-0070613 and Vanderbilt University's College of Arts and Sciences Summer Re- search Award zSupported by NSF Grant DMS-0070430 1 is referred to as an embedding.
    [Show full text]
  • 2 Graphs and Graph Theory
    2 Graphs and Graph Theory chapter:graphs Graphs are the mathematical objects used to represent networks, and graph theory is the branch of mathematics that involves the study of graphs. Graph theory has a long history. The notion of graph was introduced for the first time in 1763 by Euler, to settle a famous unsolved problem of his days, the so-called “K¨onigsberg bridges” problem. It is no coin- cidence that the first paper on graph theory arose from the need to solve a problem from the real world. Also subsequent works in graph theory by Kirchhoff and Cayley had their root in the physical world. For instance, Kirchhoff’s investigations on electric circuits led to his development of a set of basic concepts and theorems concerning trees in graphs. Nowadays, graph theory is a well established discipline which is commonly used in areas as diverse as computer science, sociology, and biology. To make some examples, graph theory helps us to schedule airplane routings, and has solved problems such as finding the maximum flow per unit time from a source to a sink in a network of pipes, or coloring the regions of a map using the minimum number of different colors so that no neighbouring regions are colored the same way. In this chapter we introduce the basic definitions, set- ting up the language we will need in the following of the book. The two last sections are respectively devoted to the proof of the Euler theorem, and to the description of a graph as an array of numbers.
    [Show full text]