Igraph’ Documentation of August 16, 2008

Total Page:16

File Type:pdf, Size:1020Kb

Igraph’ Documentation of August 16, 2008 Package ‘igraph’ documentation of August 16, 2008 Version 0.5.1 Date Feb 14, 2008 Title Routines for simple graphs, network analysis. Author Gabor Csardi <[email protected]> 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 Suggests stats4, rgl, tcltk, RSQLite, digest, graph, Matrix License GPL (>= 2) URL http://cneurocvs.rmki.kfki.hu/igraph R topics documented: igraph-package . .4 aging.prefatt.game . .5 alpha.centrality . .7 arpack . .9 articulation.points . 13 as.directed . 14 attributes . 15 barabasi.game . 17 betweenness . 19 biconnected.components . 21 bonpow . 22 canonical.permutation . 24 1 2 R topics documented: cliques . 26 closeness . 27 clusters . 29 cocitation . 30 cohesive.blocks . 31 edge.betweenness.community . 33 communities . 35 components . 36 constraint . 37 conversion . 38 decompose.graph . 39 degree . 40 degree.sequence.game . 41 diameter . 43 dyad.census . 44 edge.connectivity . 45 erdos.renyi.game . 46 evcent . 47 revolver ........................................... 49 fastgreedy.community . 53 forest.fire.game . 54 get.adjlist . 56 girth . 57 graph.adjacency . 58 Graphs from adjacency lists . 61 graph.automorphisms . 62 graph.constructors . 64 graph.data.frame . 66 graph.de.bruijn . 68 graph.density . 69 graph.famous . 70 graph.formula . 72 graph.graphdb . 74 graph-isomorphism . 76 graph.kautz . 79 graph.coreness . 80 graph.laplacian . 81 graph.lcf . 82 graph.maxflow . 83 graph-motifs . 85 igraph from/to graphNEL conversion . 86 graph.structure . 87 grg.game . 88 growing.random.game . 89 igraph-parameters . 90 igraph.sample . 91 Vertex shapes . 92 independent.vertex.sets . 93 R topics documented: 3 is.igraph . 95 is.multiple . 95 is.mutual . 97 iterators . 98 kleinberg . 100 layout.drl . 102 layout.merge . 104 layout . 105 leading.eigenvector.community . 109 line.graph . 112 measure.dynamics . 113 minimum.spanning.tree . 114 modularity . 116 neighborhood . 117 graph-operators . 118 page.rank . 120 permute.vertices . 122 plot.bgraph . 123 Drawing graphs . 124 plot.igraph . 130 power.law.fit . 131 preference.game . 132 print.igraph . 133 read.graph . 134 reciprocity . ..
Recommended publications
  • Planar Hypohamiltonian Graphs on 40 Vertices
    Planar Hypohamiltonian Graphs on 40 Vertices Mohammadreza Jooyandeh, Brendan D. McKay Research School of Computer Science, Australian National University, ACT 2601, Australia Patric R. J. Osterg˚ard,¨ Ville H. Pettersson Department of Communications and Networking, Aalto University School of Electrical Engineering, P.O. Box 13000, 00076 Aalto, Finland Carol T. Zamfirescu Department of Applied Mathematics, Computer Science and Statistics, Ghent University, Krijgslaan 281 - S9, 9000 Ghent, Belgium Abstract A graph is hypohamiltonian if it is not Hamiltonian, but the deletion of any single vertex gives a Hamiltonian graph. Until now, the smallest known planar hypohamiltonian graph had 42 vertices, a result due to Araya and Wiener. That result is here improved upon by 25 planar hypohamiltonian graphs of order 40, which are found through computer-aided generation of certain families of planar graphs with girth 4 and a fixed number of 4-faces. It is further shown that planar hypohamiltonian graphs exist for all orders greater than or equal to 42. If Hamiltonian cycles are replaced by Hamilto- nian paths throughout the definition of hypohamiltonian graphs, we get the definition of hypotraceable graphs. It is shown that there is a planar hypo- traceable graph of order 154 and of all orders greater than or equal to 156. We also show that the smallest planar hypohamiltonian graph of girth 5 has 45 vertices. Email addresses: [email protected] (Mohammadreza Jooyandeh), [email protected] (Brendan D. McKay), [email protected] (Patric R. J. Osterg˚ard),¨ [email protected] (Ville H. Pettersson), [email protected] (Carol T. Zamfirescu) URL: http://www.jooyandeh.com (Mohammadreza Jooyandeh), http://cs.anu.edu.au/~bdm (Brendan D.
    [Show full text]
  • Every Graph Occurs As an Induced Subgraph of Some Hypohamiltonian Graph
    View metadata, citation and similar papers at core.ac.uk brought to you by CORE Received: 27 October 2016 Revised: 31 October 2017 Accepted: 20 November 2017 provided by Ghent University Academic Bibliography DOI: 10.1002/jgt.22228 ARTICLE Every graph occurs as an induced subgraph of some hypohamiltonian graph Carol T. Zamfirescu1 Tudor I. Zamfirescu2,3,4 1 Department of Applied Mathematics, Com- Abstract puter Science and Statistics, Ghent University, Krijgslaan 281 - S9, 9000 Ghent, Belgium We prove the titular statement. This settles a problem 2Fachbereich Mathematik, Universität of Chvátal from 1973 and encompasses earlier results Dortmund, 44221 Dortmund, Germany of Thomassen, who showed it for 3, and Collier and 3 “Simion Stoilow” Institute of Mathematics, Schmeichel, who proved it for bipartite graphs. We also Roumanian Academy, Bucharest, Roumania show that for every outerplanar graph there exists a pla- 4College of Mathematics and Information Science, Hebei Normal University, 050024 nar hypohamiltonian graph containing it as an induced Shijiazhuang, P.R. China subgraph. Correspondence Carol T. Zamfirescu, Department of KEYWORDS Applied Mathematics, Computer Sci- hypohamiltonian, induced subgraph ence and Statistics, Ghent University, Krijgslaan 281 - S9, 9000 Ghent, Belgium. MSC 2010. Email: czamfi[email protected] 05C10, 05C45, 05C60 Funding information Fonds Wetenschappelijk Onderzoek 1 INTRODUCTION Consider a non-hamiltonian graph . We call hypohamiltonian if for every vertex in , the graph − is hamiltonian. In similar spirit, is said to be almost hypohamiltonian if there exists a vertex in , which we will call exceptional, such that − is non-hamiltonian, and for any vertex ≠ in , the graph − is hamiltonian. For an overview of results on hypohamiltonicity till 1993, see the survey by Holton and Sheehan [7].
    [Show full text]
  • On Stable Cycles and Cycle Double Covers of Graphs with Large Circumference
    View metadata, citation and similar papers at core.ac.uk brought to you by CORE provided by Elsevier - Publisher Connector Discrete Mathematics 312 (2012) 2540–2544 Contents lists available at SciVerse ScienceDirect Discrete Mathematics journal homepage: www.elsevier.com/locate/disc On stable cycles and cycle double covers of graphs with large circumference Jonas Hägglund ∗, Klas Markström Department of Mathematics and Mathematical Statistics, Umeå University, SE-901 87 Umeå, Sweden article info a b s t r a c t Article history: A cycle C in a graph is called stable if there exists no other cycle D in the same graph such Received 11 October 2010 that V .C/ ⊆ V .D/. In this paper, we study stable cycles in snarks and we show that if a Accepted 16 August 2011 cubic graph G has a cycle of length at least jV .G/j − 9 then it has a cycle double cover. We Available online 23 September 2011 also give a construction for an infinite snark family with stable cycles of constant length and answer a question by Kochol by giving examples of cyclically 5-edge connected snarks Keywords: with stable cycles. Stable cycle ' 2011 Elsevier B.V. All rights reserved. Snark Cycle double cover Semiextension 1. Introduction In this paper, a cycle is a connected 2-regular subgraph. A cycle double cover (usually abbreviated CDC) is a multiset of cycles covering the edges of a graph such that each edge lies in exactly two cycles. The following is a famous open conjecture in graph theory. Conjecture 1.1 (CDCC).
    [Show full text]
  • Improved Bounds for Hypohamiltonian Graphs∗
    Also available at http://amc-journal.eu ISSN 1855-3966 (printed edn.), ISSN 1855-3974 (electronic edn.) ARS MATHEMATICA CONTEMPORANEA 13 (2017) 235–257 Improved bounds for hypohamiltonian graphs∗ Jan Goedgebeur , Carol T. Zamfirescu Department of Applied Mathematics, Computer Science & Statistics, Ghent University, Krijgslaan 281-S9, 9000 Ghent, Belgium In loving memory of Ella. Received 23 February 2016, accepted 16 January 2017, published online 6 March 2017 Abstract A graph G is hypohamiltonian if G is non-hamiltonian and G − v is hamiltonian for every v 2 V (G). In the following, every graph is assumed to be hypohamiltonian. Aldred, Wormald, and McKay gave a list of all graphs of order at most 17. In this article, we present an algorithm to generate all graphs of a given order and apply it to prove that there exist exactly 14 graphs of order 18 and 34 graphs of order 19. We also extend their results in the cubic case. Furthermore, we show that (i) the smallest graph of girth 6 has order 25, (ii) the smallest planar graph has order at least 23, (iii) the smallest cubic planar graph has order at least 54, and (iv) the smallest cubic planar graph of girth 5 with non-trivial automorphism group has order 78. Keywords: Hamiltonian, hypohamiltonian, planar, girth, cubic graph, exhaustive generation. Math. Subj. Class.: 05C10, 05C38, 05C45, 05C85 1 Introduction Throughout this paper all graphs are undirected, finite, connected, and neither contain loops nor multiple edges, unless explicitly stated otherwise. A graph is hamiltonian if it contains a cycle visiting every vertex of the graph.
    [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]
  • Cubic Maximal Nontraceable Graphsଁ Marietjie Frick, Joy Singleton
    View metadata, citation and similar papers at core.ac.uk brought to you by CORE provided by Elsevier - Publisher Connector Discrete Mathematics 307 (2007) 885–891 www.elsevier.com/locate/disc Cubic maximal nontraceable graphsଁ Marietjie Frick, Joy Singleton University of South Africa, P.O. Box 392, Unisa 0003, South Africa Received 21 October 2003; received in revised form 2 November 2004; accepted 22 November 2005 Available online 20 September 2006 Abstract We determine a lower bound for the number of edges of a 2-connected maximal nontraceable graph, and present a construction of an infinite family of maximal nontraceable graphs that realize this bound. © 2006 Elsevier B.V. All rights reserved. MSC: 05C38 Keywords: Maximal nontraceable; Maximal nonhamiltonian; Hypohamiltonian; Hamiltonian path; Hamiltonian cycle; Traceable; Nontraceable; Hamiltonian; Nonhamiltonian; Maximal hypohamiltonian 1. Introduction We consider only simple, finite graphs G and denote the vertex set and edge set of G by V (G) and E(G), respectively. The open neighbourhood of a vertex v in G is the set NG(v) ={x ∈ V (G) : vx ∈ E(G)}.IfU is a nonempty subset of V (G), then U denotes the subgraph of G induced by U. A graph G is hamiltonian if it has a hamiltonian cycle (a cycle containing all the vertices of G), and traceable if it has a hamiltonian path (a path containing all the vertices of G). A graph G is maximal nonhamiltonian (MNH) if G is not hamiltonian, but G+e is hamiltonian for each e ∈ E(G), where G denotes the complement of G. A graph G is maximal nontraceable (MNT) if G is not traceable, but G + e is traceable for each e ∈ E(G).
    [Show full text]
  • A Family of Trivalent 1-Hamiltonian Graphs with Diameter O(Log N)
    JOURNAL OF INFORMATION SCIENCE AND ENGINEERING 17, 535-548 (2001) A Family of Trivalent 1-Hamiltonian Graphs With Diameter O(log n) JENG-JUNG WANG, TING-YI SUNG* AND LIH-HSING HSU** Department of Information Engineering I- Shou University Kaohsiung, Taiwan 840, R.O.C. *Institute of Information Science Academia Sinica Taipei, Taiwan 115, R.O.C. **Department of Computer and Information Science National Chiao Tung University Hsinchu, Taiwan 300, R.O.C. E-mail: [email protected] In this paper, we construct a family of graphs denoted by Eye(s) that are 3-regular, 3-connected, planar, hamiltonian, edge hamiltonian, and also minimal 1-hamiltonian. Furthermore, the diameter of Eye(s)isO(log n), where n is the number of vertices in the graph and to be precise, n =6(2s − 1) vertices. Keywords: hamiltonian, edge hamiltonian, 1-vertex hamiltonian, 1-edge hamiltonian, 1-hamiltonian, diameter, Moore bound 1. INTRODUCTION Given a graph G =(V, E), V(G)=V and E(G)=E denote the vertex set and the edge set of G, respectively. All graphs considered in this paper are undirected graphs. A sim- ple path (or path for short) is a sequence of adjacent edges (v1, v2), (v2, v3), …, (vm-2, vm-1), (vm-1, vm), written as 〈v1, v2, v3,…,vm〉, in which all of the vertices v1, v2, v3,…,vm are distinct except possibly v1 = vm. The path 〈v1, v2, v3,…,vm〉 is also called a cycle if v1 = vm and m ≥ 3. A cycle that traverses every vertex in the graph exactly once is called a ham- iltonian cycle.
    [Show full text]
  • The Traveling Salesman Problem
    M. J¨unger G. Reinelt G. Rinaldi THE TRAVELING SALESMAN PROBLEM R. 375 Gennaio 1994 Michael J¨unger - Institut f¨ur Informatik der Universit¨at zu K¨oln, Pohlig- straße 1, D-50696 K¨oln, Germany. Gerhard Reinelt - Institut f¨ur Angewandte Mathematik, Universit¨at Hei- delberg, Im Neuenheimer Feld 294, D-69120 Heidelberg, Germany. Giovanni Rinaldi - Istituto di Analisi dei Sistemi ed Informatica del CNR, Viale Manzoni 30, 00185 Roma, Italy. This paper presents a self-contained introduction into algorithmic and com- putational aspects of the traveling salesman problem and of related problems, along with their theoretical prerequisites as seen from the point of view of an operations researcher who wants to solve practical problem instances. Extensive computational results are reported on most of the algorithms de- scribed. Optimal solutions are reported for instances with sizes up to several thousand nodes as well as heuristic solutions with provably very high quality for larger instances. This is a preliminary version of one of the chapters of the volume “Networks” edited by M.O. Ball, T.L. Magnanti, C.L. Monma, and G.L. Nemhauser, of the series Handbooks in Operations Research and Management Science, to be published by North-Holland, Amsterdam. i ii M. J¨unger, G. Reinelt and G. Rinaldi CONTENTS 1. Introduction 1 2. Related problems 3 Traveling salesman problems in general graphs ............... 3 The graphical traveling salesman problem ................... 4 Hamiltonian and semi-Hamiltonian graphs .................. 4 The asymmetric traveling salesman problem ................. 4 The multisalesmen problem ............................. 5 The rural postman problem ............................. 5 The shortest Hamiltonian path problem .................... 6 The bottleneck traveling salesman problem .................
    [Show full text]
  • On Hypohamiltonian Snarks and a Theorem of Fiorini
    On Hypohamiltonian Snarks and a Theorem of Fiorini Jan Goedgebeur ∗ Department of Applied Mathematics, Computer Science & Statistics, Ghent University, Krijgslaan 281-S9, 9000 Ghent, Belgium Carol T. Zamfirescu † Department of Applied Mathematics, Computer Science & Statistics, Ghent University, Krijgslaan 281-S9, 9000 Ghent, Belgium In memory of the first author’s little girl Ella. Received dd mmmm yyyy, accepted dd mmmmm yyyy, published online dd mmmmm yyyy Abstract We discuss an omission in the statement and proof of Fiorini’s 1983 theorem on hypo- hamiltonian snarks and present a version of this theorem which is more general in several ways. Using Fiorini’s erroneous result, Steffen showed that hypohamiltonian snarks exist for some n ≥ 10 and each even n ≥ 92. We rectify Steffen’s proof by providing a correct demonstration of a technical lemma on flower snarks, which might be of separate interest. We then strengthen Steffen’s theorem to the strongest possible form by determining all or- ders for which hypohamiltonian snarks exists. This also strengthens a result of M´aˇcajov´a and Skoviera.ˇ Finally, we verify a conjecture of Steffen on hypohamiltonian snarks up to 36 vertices. Keywords: hypohamiltonian, snark, irreducible snark, dot product Math. Subj. Class.: 05C10, 05C38, 05C45, 05C85. arXiv:1608.07164v1 [math.CO] 25 Aug 2016 1 Introduction A graph G is hypohamiltonian if G itself is non-hamiltonian, but for every vertex v in G, the graph G−v is hamiltonian. A snark shall be a cubic cyclically 4-edge-connected graph with chromatic index 4 (i.e. four colours are required in any proper edge-colouring) and girth at least 5.
    [Show full text]
  • Characterization of Generalized Petersen Graphs That Are Kronecker Covers Matjaž Krnc, Tomaž Pisanski
    Characterization of generalized Petersen graphs that are Kronecker covers Matjaž Krnc, Tomaž Pisanski To cite this version: Matjaž Krnc, Tomaž Pisanski. Characterization of generalized Petersen graphs that are Kronecker covers. 2019. hal-01804033v4 HAL Id: hal-01804033 https://hal.archives-ouvertes.fr/hal-01804033v4 Preprint submitted on 18 Oct 2019 (v4), last revised 3 Nov 2019 (v6) HAL is a multi-disciplinary open access L’archive ouverte pluridisciplinaire HAL, est archive for the deposit and dissemination of sci- destinée au dépôt et à la diffusion de documents entific research documents, whether they are pub- scientifiques de niveau recherche, publiés ou non, lished or not. The documents may come from émanant des établissements d’enseignement et de teaching and research institutions in France or recherche français ou étrangers, des laboratoires abroad, or from public or private research centers. publics ou privés. Discrete Mathematics and Theoretical Computer Science DMTCS vol. VOL:ISS, 2015, #NUM Characterization of generalised Petersen graphs that are Kronecker covers∗ Matjazˇ Krnc1;2;3y Tomazˇ Pisanskiz 1 FAMNIT, University of Primorska, Slovenia 2 FMF, University of Ljubljana, Slovenia 3 Institute of Mathematics, Physics, and Mechanics, Slovenia received 17th June 2018, revised 20th Mar. 2019, 18th Sep. 2019, accepted 26th Sep. 2019. The family of generalised Petersen graphs G (n; k), introduced by Coxeter et al. [4] and named by Watkins (1969), is a family of cubic graphs formed by connecting the vertices of a regular polygon to the corresponding vertices of a star polygon. The Kronecker cover KC (G) of a simple undirected graph G is a special type of bipartite covering graph of G, isomorphic to the direct (tensor) product of G and K2.
    [Show full text]
  • PDF Reference
    NetworkX Reference Release 1.0 Aric Hagberg, Dan Schult, Pieter Swart January 08, 2010 CONTENTS 1 Introduction 1 1.1 Who uses NetworkX?..........................................1 1.2 The Python programming language...................................1 1.3 Free software...............................................1 1.4 Goals...................................................1 1.5 History..................................................2 2 Overview 3 2.1 NetworkX Basics.............................................3 2.2 Nodes and Edges.............................................4 3 Graph types 9 3.1 Which graph class should I use?.....................................9 3.2 Basic graph types.............................................9 4 Operators 129 4.1 Graph Manipulation........................................... 129 4.2 Node Relabeling............................................. 134 4.3 Freezing................................................. 135 5 Algorithms 137 5.1 Boundary................................................. 137 5.2 Centrality................................................. 138 5.3 Clique.................................................. 142 5.4 Clustering................................................ 145 5.5 Cores................................................... 147 5.6 Matching................................................. 148 5.7 Isomorphism............................................... 148 5.8 PageRank................................................. 161 5.9 HITS..................................................
    [Show full text]
  • 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 .
    [Show full text]