Is it possible to filter the graph view to show two pages plus all pages linked to either (or both)?

I would like to create a graph view that shows:

  • Page A
  • Page B
  • All pages that are directly linked to Page A
  • All pages that are directly linked to Page B

alternatively, instead of showing all pages linked to either page, instead show

  • All pages that are linked directly to Page A AND linked directly to Page B

Is there any way to do this currently?