Learn R Programming

igraph (version 1.3.5)

is_directed: Check whether a graph is directed

Description

Check whether a graph is directed

Usage

is_directed(graph)

Value

Logical scalar, whether the graph is directed.

Arguments

graph

The input graph

See Also

Other structural queries: [.igraph(), [[.igraph(), adjacent_vertices(), are_adjacent(), ends(), get.edge.ids(), gorder(), gsize(), head_of(), incident_edges(), incident(), neighbors(), tail_of()

Examples

Run this code
g <- make_ring(10)
is_directed(g)

g2 <- make_ring(10, directed = TRUE)
is_directed(g2)

Run the code above in your browser using DataLab