public void connect(IConnectable connection)
        {
            if (connection == null)
                return;

            IConnectable searcher;
            if (mConnections.TryGetValue(connection.getID(), out searcher))
            {
                mConnections.Remove(connection.getID());

                if (mIsSelected)
                    searcher.unlight();
            }
            else
            {
                mConnections.Add(connection.getID(), connection);

                if (mIsSelected)
                    connection.highlight(Color.yellow);
            }
        }