Show / Hide Table of Contents

Interface IQueue<T>

Represents a queue (First in, First out).

Namespace: QuikGraph.Collections
Assembly: QuikGraph.dll
Syntax
public interface IQueue<T>
Type Parameters
Name Description
T

Element type.

Properties

| Improve this Doc View Source

Count

Number of elements.

Declaration
int Count { get; }
Property Value
Type Description
System.Int32

Methods

| Improve this Doc View Source

Contains(T)

Checks if this queue contains the given value.

Declaration
bool Contains(T value)
Parameters
Type Name Description
T value

Value to check.

Returns
Type Description
System.Boolean

True if the value is contained in the queue, false otherwise.

| Improve this Doc View Source

Dequeue()

Dequeues an element from the queue.

Declaration
T Dequeue()
Returns
Type Description
T

Removed element.

Exceptions
Type Condition
System.InvalidOperationException

Queue is empty.

| Improve this Doc View Source

Enqueue(T)

Enqueues an element in the queue.

Declaration
void Enqueue(T value)
Parameters
Type Name Description
T value

Value to add.

| Improve this Doc View Source

Peek()

Returns the element at the beginning of the queue.

Declaration
T Peek()
Returns
Type Description
T

The top queue element.

Exceptions
Type Condition
System.InvalidOperationException

Queue is empty.

| Improve this Doc View Source

ToArray()

Converts this queue to an array.

Declaration
T[] ToArray()
Returns
Type Description
T[]

Array composed of elements.

Extension Methods

GraphMLExtensions.SerializeToGraphML<TVertex, TEdge, TGraph>(TGraph, String)
GraphMLExtensions.SerializeToGraphML<TVertex, TEdge, TGraph>(TGraph, String, VertexIdentity<TVertex>, EdgeIdentity<TVertex, TEdge>)
GraphMLExtensions.SerializeToGraphML<TVertex, TEdge, TGraph>(TGraph, XmlWriter)
GraphMLExtensions.SerializeToGraphML<TVertex, TEdge, TGraph>(TGraph, XmlWriter, VertexIdentity<TVertex>, EdgeIdentity<TVertex, TEdge>)
GraphMLExtensions.DeserializeFromGraphML<TVertex, TEdge, TGraph>(TGraph, XmlReader, IdentifiableVertexFactory<TVertex>, IdentifiableEdgeFactory<TVertex, TEdge>)
GraphMLExtensions.DeserializeFromGraphML<TVertex, TEdge, TGraph>(TGraph, TextReader, IdentifiableVertexFactory<TVertex>, IdentifiableEdgeFactory<TVertex, TEdge>)
GraphMLExtensions.DeserializeFromGraphML<TVertex, TEdge, TGraph>(TGraph, String, IdentifiableVertexFactory<TVertex>, IdentifiableEdgeFactory<TVertex, TEdge>)
GraphMLExtensions.DeserializeAndValidateFromGraphML<TVertex, TEdge, TGraph>(TGraph, TextReader, IdentifiableVertexFactory<TVertex>, IdentifiableEdgeFactory<TVertex, TEdge>)
SerializationExtensions.SerializeToXml<TVertex, TEdge, TGraph>(TGraph, XmlWriter, VertexIdentity<TVertex>, EdgeIdentity<TVertex, TEdge>, String, String, String, String)
SerializationExtensions.SerializeToXml<TVertex, TEdge, TGraph>(TGraph, XmlWriter, VertexIdentity<TVertex>, EdgeIdentity<TVertex, TEdge>, String, String, String, String, Action<XmlWriter, TGraph>, Action<XmlWriter, TVertex>, Action<XmlWriter, TEdge>)
  • Improve this Doc
  • View Source
In This Article
Back to top QuikGraph