From 044149593d94e3fe047e6c52066c77a317bbcd5b Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Mon, 30 Jan 2012 23:11:38 -0800 Subject: Graph isomorphism checking code. --- src/misc/vec/vecInt.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/misc/vec/vecInt.h') diff --git a/src/misc/vec/vecInt.h b/src/misc/vec/vecInt.h index 5a25d2c9..be54e583 100644 --- a/src/misc/vec/vecInt.h +++ b/src/misc/vec/vecInt.h @@ -926,6 +926,8 @@ static inline Vec_Int_t * Vec_IntInvert( Vec_Int_t * p, int Fill ) { int Entry, i; Vec_Int_t * vRes = Vec_IntAlloc( 0 ); + if ( Vec_IntSize(p) == 0 ) + return vRes; Vec_IntFill( vRes, Vec_IntFindMax(p) + 1, Fill ); Vec_IntForEachEntry( p, Entry, i ) if ( Entry != Fill ) -- cgit v1.2.3