Image Demosaicking with Contour Stencils
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions | Variables
edge.c File Reference

Weighted graph edges. More...

#include "basic.h"
#include "edge.h"
Include dependency graph for edge.c:

Go to the source code of this file.

Functions

int AddEdge (edgelist *List, int x1, int y1, int x2, int y2)
 Add an edge to an edgelist. More...
 
void FreeEdgeList (edgelist *List)
 Free edges within an edgelist. More...
 

Variables

edgelist NullEdgeList = {NULL, NULL, 0}
 An empty edge list. More...
 

Detailed Description

Weighted graph edges.

Author
Pascal Getreuer getre.nosp@m.uer@.nosp@m.gmail.nosp@m..com

Copyright (c) 2010-2011, Pascal Getreuer All rights reserved.

This program is free software: you can use, modify and/or redistribute it under the terms of the simplified BSD License. You should have received a copy of this license along this program. If not, see http://www.opensource.org/licenses/bsd-license.html.

Definition in file edge.c.

Function Documentation

int AddEdge ( edgelist List,
int  x1,
int  y1,
int  x2,
int  y2 
)

Add an edge to an edgelist.

Parameters
Listthe edgelist to add edge to
x1,y1,x2,y2edge endpoints
Returns
1 on success, 0 on failure (memory allocation failure)

Definition at line 28 of file edge.c.

Here is the caller graph for this function:

void FreeEdgeList ( edgelist List)

Free edges within an edgelist.

Parameters
Listthe edgelist

Definition at line 59 of file edge.c.

Here is the caller graph for this function:

Variable Documentation

edgelist NullEdgeList = {NULL, NULL, 0}

An empty edge list.

Definition at line 19 of file edge.c.