1% Generated by roxygen2: do not edit by hand
2% Please edit documentation in R/is_graph_directed.R
3\name{is_graph_directed}
4\alias{is_graph_directed}
5\title{Is the graph a directed graph?}
6\usage{
7is_graph_directed(graph)
8}
9\arguments{
10\item{graph}{A graph object of class \code{dgr_graph}.}
11}
12\value{
13A logical value.
14}
15\description{
16Determines whether a graph is set to be directed or not and returns a logical
17value to that effect.
18}
19\examples{
20# Create an empty graph; by default,
21# new graphs made by `create_graph()`
22# are directed
23graph <- create_graph()
24
25# Determine whether the graph
26# is directed
27graph \%>\% is_graph_directed()
28
29# Use the `set_graph_undirected()`
30# function and check again whether
31# the graph is directed
32graph \%>\%
33  set_graph_undirected() \%>\%
34  is_graph_directed()
35
36}
37