Skip to contents
igraph_ptr
igraph_ptr class: thin wrapper of igraph_t.
is_igraph()
Check if an object is igraph_ptr class
vcount() ecount() igraph_from() igraph_to() edge() neighbors() incident() is_directed() degree() add_vertices() add_edges() delete_vertices() delete_edges()
Basic Query Operations
is_sink() is_source() Vsink() Vsource()
Shortcuts to get sink/source vertices.
as.data.frame(<igraph_ptr>) as.matrix(<igraph_ptr>) print(<igraph_ptr>)
S3 methods to get and view internal data.
as_adjlist() as_inclist()
Adjacency lists

Attributes of Graph, Vertices, and Edges

Vattr() `Vattr<-`() Eattr() `Eattr<-`() V() E()
Get and set vertex and edge attributes
Vnames() as_vids() as_vnames()
Conversion between vertex IDs and names

Generating Layouts for Graph Drawing

igraph_rng_seed()
Random numbers
igraph_version()
Check and return igraph version.h
common_params()
Common parameters used throughout the package
find_common_ancestors() upstream_vertices()
Experimental functions

Other Packages

as_igraph(<phylo>) as_phylo()
Conversion between phylo and igraph
as_igraph(<tbl_tree>) as_tbl_tree()
Conversion between tbl_tree and igraph