Skip to content

Commit

Permalink
Added is_edge_present used by adm_status_automa.php
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@3092 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
marcelloscata committed Nov 2, 2004
1 parent e9d0e9f commit 2b1f1e0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion core/graphviz_api.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: graphviz_api.php,v 1.2 2004-10-14 17:24:28 marcelloscata Exp $
# $Id: graphviz_api.php,v 1.3 2004-11-02 19:53:24 marcelloscata Exp $
# --------------------------------------------------------

### GraphViz API ###
Expand Down Expand Up @@ -217,6 +217,15 @@ function add_edge( $p_src, $p_dst, $p_attributes = array() ) {
'dst' => $p_dst,
'attributes' => $p_attributes
);
# --------------------
# Check if an edge is already present.
function is_edge_present( $p_src, $p_dst ) {
foreach( $this->edges as $t_edge ) {
if( $t_edge['src'] == $p_src && $t_edge['dst'] == $p_dst ) {
return true;
}
}
return false;
}

# --------------------
Expand Down

0 comments on commit 2b1f1e0

Please sign in to comment.