How can I find the faces connected to an edge or wire?

Hello.

I'm newbie of the OCCT.

Is there any way to find faces which connected to an edge or wire?

I need to find a direction of the edge or wire forwarding to the outside.

Please help me.