3535#include " conncomp.h"
3636#include " constants.h"
3737#include " constraints.h"
38+ #include " find.h"
3839#include " geometry/acute.h"
3940#include " global.h"
4041#include " mainscene.h"
@@ -98,7 +99,6 @@ using Graph::IncidenceMatrix;
9899using Matfun::find;
99100using Matfun::sign;
100101using Matfun::unique;
101- using Matfun::spfind;
102102
103103using TextColor::black;
104104using TextColor::blue;
@@ -690,7 +690,7 @@ void impl::lookOutForParallelism(const Index c)
690690 const SparseMatrix WW = (Adj*Adj).eval ();
691691
692692 // case: straight line segment connects two segments
693- const Vector<Index,Dynamic> idx = spfind ( Adj.col (c).eval () ); // neighbors of c
693+ const Vector<Index,Dynamic> idx = find ( Adj.col (c).eval () ); // neighbors of c
694694
695695 // Check all pairs of direct neighbors.
696696 for ( Index i=0 ; i<idx.rows (); i++) {
@@ -715,7 +715,7 @@ void impl::lookOutForParallelism(const Index c)
715715
716716
717717 // Find walks of length 2 between the vertices of the graph.
718- const Vector<Index,Dynamic> nbs = spfind ( WW.col (c).eval () );
718+ const Vector<Index,Dynamic> nbs = find ( WW.col (c).eval () );
719719 for ( const auto a : nbs) { // Index n=0; n<nbs.rows()-1; n++) {
720720 // a is a walk of length 2 away from c.
721721 if ( !Adj.isSet (a,c) ) {
@@ -733,11 +733,11 @@ void impl::lookOutForCopunctuality( const Index c )
733733{
734734 const SparseMatrix WW = (Adj*Adj).eval ();
735735
736- const Vector<Index,Dynamic> nbs = spfind ( WW.col (c).eval () );
736+ const Vector<Index,Dynamic> nbs = find ( WW.col (c).eval () );
737737 for ( const auto a : nbs) {
738738 // a and c are adjacent and have at least one common neighbor.
739739 // Find all common neighbors of a and c.
740- const Vector<Index,Dynamic> nbnb = spfind ( Adj.col (a).eval () ); // neighbors of a.
740+ const Vector<Index,Dynamic> nbnb = find ( Adj.col (a).eval () ); // neighbors of a.
741741 for ( const auto b : nbnb ) {
742742 if ( !Adj.isSet ( b,c ) ) {
743743 continue ; // b is not a common neighbor of a and c.
@@ -1124,7 +1124,7 @@ void impl::remove_constraint( const Index i )
11241124
11251125 if ( m_constr.at (i)->isInstanceOf <Parallel>() )
11261126 {
1127- const Vector<Index,Dynamic> idx = spfind ( Rel.col (i).eval () );
1127+ const Vector<Index,Dynamic> idx = find ( Rel.col (i).eval () );
11281128 Q_ASSERT_X ( idx.size () == 2 , Q_FUNC_INFO,
11291129 QStringLiteral (" parallel with %1 entities" )
11301130 .arg ( QString::number (idx.size ())).toUtf8 () );
@@ -1332,7 +1332,7 @@ void impl::replaceGraphics() {
13321332 for (Index c=0 ; c<m_constr.length (); c++)
13331333 {
13341334 bool modified = false ;
1335- const Vector<Index,Dynamic> idx = spfind ( Rel.col (c).eval () );
1335+ const Vector<Index,Dynamic> idx = find ( Rel.col (c).eval () );
13361336
13371337 if ( m_constr.at (c).use_count ()==1 ) {
13381338 modified = true ; // actually not modified, but added
0 commit comments