I try to describe the logic of some algorithms I perform on meshes (in finite element analysis).
suppose i have some elements called e within some domain $E_\Omega$, each being a set of nodes n. Those n can be mutually shared between several e. Example:
$E_\Omega= \left\{ n_1 ,n_2,n_3,n_4,n_5,n_6 \right\}$
$e_1=\left\{n_1,n_2\right\}$
$e_2=\left\{n_2,n_3\right\}$
$e_3=\left\{n_1,n_4\right\}$
$e_4=\left\{n_4,n_6\right\}$
$e_5=\left\{n_5,n_6\right\}$
For some $e_i$, I now try to find all other e that share a node (i.e. be neighbors) to create a set $E_{neb}$. In software this is rather simple, but how do I describe this mathematically correctly?
following above example, i may wish to find a set of all "neighbors" of $e_4$ which would be $E_{neb,e_4}=\left\{e_3,e_5\right\}$ in that case.
I was thinking something like this:
$E_{neb, e_i}= E_{\Omega} \cap e_i \neq \emptyset$
update: something like this:
$E_{neb,e_i}= \left\{ e_j \subset E_{\Omega} \vert e_j \cap e_i \neq \emptyset\right\}$
so, more specifically, I want the set of elements (which itself are sets of nodes), for which it is true that they share a node with $e_i$.
thanks for all input, really apprechiate your help.
\Update: example added in