sodapopcan
Understanding xref's "source" and "sink" terms
It drives me nuts when I don’t fully understand terminology. I’ve been using mix xref graph --sink some/file/that/causes_lots_of_recompilations.ex for a few years at this point and while I know what I get from it, I’ve never being able to explain out loud what --sink does. I know it’s the opposite of source and I believe they are electrical engineering terms—is this correct? And a “sink” is literally like a kitchen or bathroom sink, so everything in the sink shares a common source? Am I on the right track here?
Thanks!
Marked As Solved
LostKobrakai
The terminology comes from talking about graphs:
In a Directed acyclic graph, a source node is a node (also known as a vertex) with no incoming connections from other nodes, while a sink node is a node without outgoing connections.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









