is_directed: Check whether a graph is directed

View source: R/interface.R

is_directedR Documentation

Check whether a graph is directed

Description

Check whether a graph is directed

Usage

is_directed(graph)

Arguments

graph

The input graph

Value

Logical scalar, whether the graph is directed.

See Also

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

Examples

g <- make_ring(10)
is_directed(g)

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

igraph documentation built on Oct. 20, 2024, 1:06 a.m.