# \GraphDS\EdgeUndirectedEdge

Class defining an undirected edge object.

## Summary

Methods
Properties
Constants
__construct()
getValue()
setValue()
getConnectedVertices()
$vertices
No constants found
No protected methods found
$value
N/A
No private methods found
No private properties found
N/A

File
  Edge/UndirectedEdge.php
Package
  Default
Class hierarchy
  \GraphDS\Edge\Edge
  \GraphDS\Edge\UndirectedEdge

## Tags

None found

## Properties

### $vertices

    $vertices : array

$vertices An array of vertices associated with the edge.

#### Type

array

#

Inherited from
  \GraphDS\Edge\Edge

## Tags

None found

### $value

    $value : float

$value A value/weight held by the edge.

#### Type

float

#

Inherited from
  \GraphDS\Edge\Edge

## Tags

None found

## Methods

### __construct()

    __construct(string  $vertex1, string  $vertex2, float  $value = null)

Constructor for UndirectedEdge object.

#### Parameters

string | $vertex1 | ID of first vertex
string | $vertex2 | ID of second vertex
float | $value | The value/weight the edge should hold

#

Inherited from
  \GraphDS\Edge\UndirectedEdge

## Tags

None found

### getValue()

    getValue() : float

Returns value/weight associated with this edge.

#### Returns

float —

Value/weight associated with this edge

#

Inherited from
  \GraphDS\Edge\Edge

## Tags

None found

### setValue()

    setValue(float  $value = null)

Sets the value/weight associated with this edge.

#### Parameters

float | $value | Value/weight to be associated with this edge

#

Inherited from
  \GraphDS\Edge\Edge

## Tags

None found

### getConnectedVertices()

    getConnectedVertices() : array

Returns an array of vertices connected by this edge.

#### Returns

array —

Vertices connected by this edge

#

Inherited from
  \GraphDS\Edge\Edge

## Tags

None found

### UndirectedEdge.php