1% Generated by roxygen2: do not edit by hand 2% Please edit documentation in R/count_loop_edges.R 3\name{count_loop_edges} 4\alias{count_loop_edges} 5\title{Get count of all loop edges} 6\usage{ 7count_loop_edges(graph) 8} 9\arguments{ 10\item{graph}{A graph object of class \code{dgr_graph}.} 11} 12\value{ 13A numeric vector of single length. 14} 15\description{ 16From a graph object of class \code{dgr_graph}, get a count of all loop edges in 17the graph. 18} 19\examples{ 20# Create an undirected, full graph 21# with 3 nodes and all possible 22# edges, including loop edges 23graph <- 24 create_graph( 25 directed = FALSE) \%>\% 26 add_full_graph( 27 n = 3, 28 keep_loops = TRUE) 29 30# Get a count of all loop edges 31# in the graph 32graph \%>\% count_loop_edges() 33 34} 35