实例介绍
igraph的python接口参考资料,igraph用于绘制各种网络以及进行复杂网络分析
CONTENTS CONTENTS 5.9.1 Methods 5.9.2 Properties 2 6 Module igraph. compat 260 6.1 Variables .260 7 Module igraph. configuration 261 7.1 Functions 261 7.2 Variables 26 7.3 Class Configuration 7.3.1 Methods 264 7.3.2 Properties 265 8 Module igraph. cut 267 8.1 Variables 267 8. 2 Class cut 8.2.1 Methods 269 8.2.2 Properties 270 8. 3 Class flow 270 8.3.1 Methods 272 8.3.2 Properties 273 9 Module igraph. datatypes 274 9.1 Variables 274 9.2 Class matrix 274 9.2.1 Methods 275 9.2.2 Properties 279 9.3 Class Dyad Census 279 9.3.1 Mcthods 9.3.2P 281 9. 4 Class Triad Census 281 9.4.1 Methods 9.4.2 Properties 283 9.5 Class Uniqueldgenerator 283 9.5.1 Methods 284 9.5.2 Properties 285 10 Package igraph. drawing 286 10.1 Modules 286 10.2 Functions 288 10.3 Class Default GraphDrawer 289 10.3.1 Methods 290 10.3.2 Properties 291 10.4 Class Bounding Box 10.4.1 Methods 292 10.4.2 Properties 292 10.5 Class point 293 10.5.1 Method 293 10.5.2 Properties 295 10.6 Class Rectangle 295 10.6.1 Methods 296 10.6.2 Properties 300 3 CONTENTS CONTENTS 10.7 Class Plot 301 10.7.1 Methods 303 10.7.2 Properties 11 Module igraph. drawing baseclasses 306 11.1Ⅴ ariables 06 11.2 Class Abstract Drawer 306 11.2.1 Methods 306 11.2.2P 306 11. 3 Class Abstract CairoDrawer 307 11.3.1 Methods 307 11.3.2 Properties 307 11. 4 Class AbstractXMLRPCDrawer 308 11.4.1 Method .308 11.4.2P 309 12 Module igraph. drawing. colors 310 12.1 Functi 310 12.2 Variable 313 12.3 Class Palette .313 12.3.1 Methods 313 12.3.2P 12. 4 Class Gradicnt Palcttc 12.4.1 Methods 317 12.4.2 Properties 2317 12.5 Class AdvancedGradient Palette 317 12.5.1 Methods 318 12.5.2 Properties 318 12.6 Class Rainbow Palette 12.6.1 Methods 12.6.2 Properties 320 12. 7 Class PrecalculatedPalette 320 12.7.1 Methods .321 12.7.2 Properties 12.8 Class Cluster Coloring palette 12.8.1 Methods 12.8.2 Properties 322 13 Module igraph. drawing coord 323 13.1 Variables ..323 13.2 Class CoordinateSystem 323 13.2.1 Methods 323 13.2.2 Properties 324 13.3 Class Descartes CoordinateSystem 324 13.3.1 Methods 325 13.3.2 Properties 325 14 Module igraph. drawing.edge 326 14.1 Class Abstract edgeDrawer 326 14.1.1 Method .,326 14.1.2 Properties 328 14.2 Class Arrow EdgeDrawer 328 CONTENTS CONTENTS 14.2.1M 14.2.2 Properties 329 14.3 Class TaperedEdgeDrawer 14.3.1 Methods 330 14.3.2 Properties 330 14.4 Class Alpha varyingEdgeDrawer 330 14.4.1 Methods ...331 14.4.2 Properties 331 14.5 Class Light ToDarkedgeDrawer 14.5.1 Methods 14.5.2 Properties 14.6 Class Dark Tolight EdgeDrawer 33 14.6.1 Methods 333 14.6.2 Properties 15 Module igraph. drawing graph 334 15. 1 Class Default Gra.phDrawer 15.1.1 Methods 15.1.2P 15.2 Class UbigraphDrawer 336 15.2.1 Methods .337 15.2.2 Properties 338 15.3 Class Cytoscape GraphDrawer 338 15.3.1 Methods 15.3.2 Propcrtics .,.340 16 Module igraph. drawing metamagic 341 16.1 Class AttributeSpecification 342 16.1.1Me 6.1.2P 342 6.2 Class Attribute Collector 343 16.2.1 Methods 343 16.2.2 Properties 344 17 Module igraph. drawing shapes 345 17. 1 Class ShapeDrawer Directory 345 17.1.1 Methods 46 17.1.2 Properties 347 17.1.3 Class Variables 347 18 Module igraph. drawing. text 348 18. 1 Class TextAlignment 348 18.1.1 Methods 18.1.2 Properties 348 18.1.3 Class variables 348 18.2 Class TextDrawel 18.2.1 Methiods .349 18.2.2 Properties 18.2.3 Class variables 19 Module igraph. drawingutils 353 19.1 Class Rectangle CONTENTS CONTENTS 19.1.1 Methods ...353 19.1. 2 Properties 358 19.2 Class Bounding Box 358 19.2.1 Methods 359 19.2.2 Properties 359 19.3 Class FakeModule 360 19.3.1 Methods ..360 19.3.2 Properties 360 19.4 Class Point 361 19.4.1 Methods 361 19.4.2 Properties 20 Module igraph. drawingvertex 364 20.1 Class Abstract VertexDrawer 364 20.1.1 Methods 364 20.1.2 Properties 365 20.2 Class Abstract Cairo Vertex Drawer 365 20.2.1 Methods 366 0.2.2P 366 20.3 Class default vertexDrawer 367 20.3.1 Method: .367 20.3.2P1 368 21 Module igraph.layout 369 21.1 Variables 21.2 Class Layout 369 21.2.1 Methods 370 21.2.2 Properties 375 22 Module igraph. matching 376 22.1 varial 376 22.2 Class matching 376 22.2.1 Methods 22.2.2 Properties 378 23 Package igraph. remote 380 23. 1 Modules 23.2 Variables 380 24 Module igraph.remote. geph 381 24.1 Class Gephi Connection 381 24.1.1 Methods 381 24.1.2 Properties 382 24.2 Class GephiGraphStreamingAPIFormat 383 24.2.1 Methods 383 24.2.2 Properties 385 24.3 Class GephiGraphStreamer 385 24.3.1 Method 386 24.3.2 Properties 387 25 Module igraph. remote. nexus 388 25.1 Variables CONTENTS CONTENTS 25.2 Class Nexus Connection ...388 25.2.1 Methods 389 25.2.2 Properties 26 Module igraph. statistics 393 26.1 Functions 26.2 Class FittedPowerlaw 396 26.2.1 Methods 397 26.2.2 Properties 398 26.3 Class histogra.m 398 26.3. 1 Methods 399 26.3.2 Properties 400 26.4 Class Running Mean 401 26.4.1 Methods 401 26.4.2P1 403 27 Module igraph. summary' 404 27. 1 Class graphs 404 27.1.1 Methods 405 27.1.2 Properties 406 28 Module igraph. utils 407 28.1 Functions 407 28.2Va 409 28. 3 Class multidict 410 28.3.1 Methods 410 28.3.2 Properties 414 28.3.3 Class Variable 414 Package igraph 1 Package igraph IGraph library Version: 0.7.0 Liccnsc:Copyright(C)2006-2012TamasNopusz<tamas@gmail.com>PazmanyPctcrsctany1/a,1117 Budapest, Hungary This program is free soft ware; you can redistribute it and or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or(at your option) any later version This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the gnu general public license for more details You should have received a copy of the gnU General Public License along with this program; if not, write to the free software Foundation. Inc.. 51 Franklin Street Fifth floor. Boston. MA02110-1301 USA odules igraph: Low-level Python interface for the igraph library Section 2, p. 216 app: User interfaces of igraph (Section 3, P. 221) shell: Command-line user interface of igraph (Section 4, p. 222 clustering: Classes related to graph clustering (Section 5, p. 232) compat: Compatibility methods and backported versions of newer Python features to enable igraph to run on python 2.5 Section 6, p. 260 configuration: Configuration framework for igrap ection cut: Classes representing cuts and flows on graphs (Section 8, p. 26 datatypes: Additional auxiliary data types p.274 drawing: Drawing and plotting routines for IGraph (Section 10, p. 286 baseclasses: Abstract base classes for the drawing routines 1,y.306 colors: Color handling functions ecton 12,p.3i d: Coordinate systems and related plotting routines Section 13, p. 323) edge: Drawers for various edge styles in graph plots 4,p.326 graph: Drawing routines to draw graphs 5,p.334) metamagic: Auxiliary classes for the default graph drawer in igraph Package igra h (Section 16, p. 341 shapes: Shape drawing classes for igraph (Section 17, p. 345, text: Drawers for labels on plots 18,p.348 utils: Utility classes for drawing routines 19,p.353) vertex: Drawing routines to draw the vertices of graphis (Section 20, p. 364) formula(Section??, p. ?? layout: Layout-related code in the IGraph library (Section 21, p. 369) matching: Classes representing matchings on graphs 'Section 22, p. 376 remote: Classes that help igraph communicate with remote applications ( Section 28, p 980) gophi:ClasscsthathclpigraphcommunicatewithGophi(http://www.gephi.org (Section 24, p. 381) nexus: Interface to the Nexus online graph repository Section 25, p. 388) statistics: Statistics related stuff in igraph Section 26, p. 393) summan (Section 1.2, p. 5) summary: Summary representation of a graph (Section 27, p. 404) utils: Utility functions that cannot be categorised anywhere else (Scction 28, p. 407) Functions Package igraph 1.2 Functions autocurve(graph, attribute=]curved,, default=o) Calculates curvature values for each of the edges in the graph to Inlake sure thlat multiple edges are shown properly on a graph plot This function checks the multiplicity of each edge in the graph and assigns curvature values (numbers between-1 and 1, corresponding to CCW(-1), straight(0)and CW(1) curved edges) to them. The assigned values are either stored in an edge attribute or returned as a list, depending on the value of the attribute argument Parameters graph the graph on which the calculation will be run ttribute: the name of the edge attribute to save the curvature values to. The default value is curved. which is the name of the edge attribute the default graph plotter checks to decide whether an edge should be curved on the plot or not. If attribute is none. the result will not be stored default the default curvature for single edges. Zero means that single edges will be straight. If you want single edges to be curved as well, try passing 0.5 or-05 here Rcturn valuc the list of curvature values if attribute is none. otherwise none read (filename, *args, **kads Loads a graph from the given filename This is just a convenience function, calls Graph. Read directly. All arguments are passed unChanged to Graph. Read Parameters filename: the name of the file to be loaded load (filename, * args, x hads Loads a graph from the given filename This is just a convenience function, calls Graph. Read directly. All arguments are passed unchanged to Graph. Read Parameters filename: the name of the file to be loaded write graph, filename, *args, **heud graph to the given file This is just a convenience functiOn, calls Graph. write directly. All arguments are passed unchanged to graph. write Parameters h grap the graph to bo filename: the name of the file to be written 【实例截图】
【核心代码】
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论