# is_directed

From igraph v1.0.0
by Gabor Csardi

##### Check whether a graph is directed

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.connected`

, `are_adjacent`

;
`ecount`

, `gsize`

;
`ends`

, `get.edge`

,
`get.edges`

; `get.edge.ids`

;
`gorder`

, `vcount`

;
`head_of`

; `incident_edges`

;
`incident`

; `neighbors`

;
`tail_of`

##### Examples

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

*Documentation reproduced from package igraph, version 1.0.0, License: GPL (>= 2)*

### Community examples

Looks like there are no examples yet.